{
    "cells": [
        {
            "cell_type": "markdown",
            "id": "5fa01d8c-261f-4da2-8698-5eae785e2f81",
            "metadata": {},
            "source": [
                "# Comparing Methods for Structured Retrieval (Auto-Retrieval vs. Recursive Retrieval)\n",
                "\n",
                "In a naive RAG system, the set of input documents are then chunked, embedded, and dumped to a vector database collection. Retrieval would just fetch the top-k documents by embedding similarity.\n",
                "\n",
                "This can fail if the set of documents is large - it can be hard to disambiguate raw chunks, and you're not guaranteed to filter for the set of documents that contain relevant context.\n",
                "\n",
                "In this guide we explore **structured retrieval** - more advanced query algorithms that take advantage of structure within your documents for higher-precision retrieval. We compare the following two methods:\n",
                "\n",
                "- **Metadata Filters + Auto-Retrieval**: Tag each document with the right set of metadata. During query-time, use auto-retrieval to infer metadata filters along with passing through the query string for semantic search.\n",
                "- **Store Document Hierarchies (summaries -> raw chunks) + Recursive Retrieval**: Embed document summaries and map that to the set of raw chunks for each document. During query-time, do recursive retrieval to first fetch summaries before fetching documents."
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 77,
            "id": "15c61ad0-25e3-4a07-a5af-d604f36b84aa",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "import nest_asyncio\n",
                "\n",
                "nest_asyncio.apply()"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 1,
            "id": "d38e8cbf-53da-4fed-8770-860e9e83d329",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "import logging\n",
                "import sys\n",
                "from llama_index import SimpleDirectoryReader, SummaryIndex, ServiceContext\n",
                "\n",
                "logging.basicConfig(stream=sys.stdout, level=logging.INFO)\n",
                "logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 58,
            "id": "9107ed7c-9727-40c9-ae43-862a8c67b7d0",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "wiki_titles = [\"Michael Jordan\", \"Elon Musk\", \"Richard Branson\", \"Rihanna\"]\n",
                "wiki_metadatas = {\n",
                "    \"Michael Jordan\": {\n",
                "        \"category\": \"Sports\",\n",
                "        \"country\": \"United States\",\n",
                "    },\n",
                "    \"Elon Musk\": {\n",
                "        \"category\": \"Business\",\n",
                "        \"country\": \"United States\",\n",
                "    },\n",
                "    \"Richard Branson\": {\n",
                "        \"category\": \"Business\",\n",
                "        \"country\": \"UK\",\n",
                "    },\n",
                "    \"Rihanna\": {\n",
                "        \"category\": \"Music\",\n",
                "        \"country\": \"Barbados\",\n",
                "    },\n",
                "}"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 59,
            "id": "ec14903c-9e13-4a41-a8e0-f8bf9e0b5c89",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from pathlib import Path\n",
                "\n",
                "import requests\n",
                "\n",
                "for title in wiki_titles:\n",
                "    response = requests.get(\n",
                "        \"https://en.wikipedia.org/w/api.php\",\n",
                "        params={\n",
                "            \"action\": \"query\",\n",
                "            \"format\": \"json\",\n",
                "            \"titles\": title,\n",
                "            \"prop\": \"extracts\",\n",
                "            # 'exintro': True,\n",
                "            \"explaintext\": True,\n",
                "        },\n",
                "    ).json()\n",
                "    page = next(iter(response[\"query\"][\"pages\"].values()))\n",
                "    wiki_text = page[\"extract\"]\n",
                "\n",
                "    data_path = Path(\"data\")\n",
                "    if not data_path.exists():\n",
                "        Path.mkdir(data_path)\n",
                "\n",
                "    with open(data_path / f\"{title}.txt\", \"w\") as fp:\n",
                "        fp.write(wiki_text)"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 60,
            "id": "cee3a660-dfff-4865-8fe8-75862a2b4c78",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "# Load all wiki documents\n",
                "docs_dict = {}\n",
                "for wiki_title in wiki_titles:\n",
                "    doc = SimpleDirectoryReader(input_files=[f\"data/{wiki_title}.txt\"]).load_data()[0]\n",
                "\n",
                "    doc.metadata.update(wiki_metadatas[wiki_title])\n",
                "    docs_dict[wiki_title] = doc"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 61,
            "id": "438b87ce-729d-4fad-9464-b9fa30e069b0",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from llama_index.llms import OpenAI\n",
                "from llama_index.callbacks import LlamaDebugHandler, CallbackManager\n",
                "\n",
                "\n",
                "llm = OpenAI(\"gpt-4\")\n",
                "callback_manager = CallbackManager([LlamaDebugHandler()])\n",
                "service_context = ServiceContext.from_defaults(\n",
                "    llm=llm, callback_manager=callback_manager, chunk_size=256\n",
                ")"
            ]
        },
        {
            "cell_type": "markdown",
            "id": "c07f3302-f0c1-485e-990e-ac6b1dda2577",
            "metadata": {},
            "source": [
                "## Metadata Filters + Auto-Retrieval\n",
                "\n",
                "In this approach, we tag each Document with metadata (category, country), and store in a Weaviate vector db.\n",
                "\n",
                "During retrieval-time, we then perform \"auto-retrieval\" to infer the relevant set of metadata filters."
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 105,
            "id": "c3a35007-9bd0-42cc-be52-ba0316f80635",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stderr",
                    "output_type": "stream",
                    "text": [
                        "/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/sessions.py:806: ResourceWarning: unclosed <ssl.SSLSocket fd=77, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.78', 63780), raddr=('34.111.207.94', 443)>\n",
                        "  self.adapters[prefix] = adapter\n",
                        "ResourceWarning: Enable tracemalloc to get the object allocation traceback\n"
                    ]
                }
            ],
            "source": [
                "## Setup Weaviate\n",
                "import weaviate\n",
                "\n",
                "# cloud\n",
                "resource_owner_config = weaviate.AuthClientPassword(\n",
                "    username=\"username\",\n",
                "    password=\"password\",\n",
                ")\n",
                "client = weaviate.Client(\n",
                "    \"https://llamaindex-test-ul4sgpxc.weaviate.network\",\n",
                "    auth_client_secret=resource_owner_config,\n",
                ")"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 106,
            "id": "7051c353-ba65-4a47-bf9a-f5b97d7212ce",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from llama_index import VectorStoreIndex, SimpleDirectoryReader\n",
                "from llama_index.vector_stores import WeaviateVectorStore\n",
                "from IPython.display import Markdown, display"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 107,
            "id": "0c2dcf5d-f539-4e83-8017-0a79ef398132",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "# drop items from collection first\n",
                "client.schema.delete_class(\"LlamaIndex\")"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 108,
            "id": "f2f0e889-1f16-4660-863c-dca8ef63fbe0",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from llama_index.storage.storage_context import StorageContext\n",
                "\n",
                "# If you want to load the index later, be sure to give it a name!\n",
                "vector_store = WeaviateVectorStore(weaviate_client=client, index_name=\"LlamaIndex\")\n",
                "storage_context = StorageContext.from_defaults(vector_store=vector_store)\n",
                "\n",
                "# NOTE: you may also choose to define a index_name manually.\n",
                "# index_name = \"test_prefix\"\n",
                "# vector_store = WeaviateVectorStore(weaviate_client=client, index_name=index_name)"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 109,
            "id": "d01b32c2-5625-4b6f-87eb-198b5f3f37da",
            "metadata": {
                "scrolled": true,
                "tags": []
            },
            "outputs": [
                {
                    "data": {
                        "text/plain": [
                            "{'class': 'LlamaIndex',\n",
                            " 'description': 'Class for LlamaIndex',\n",
                            " 'invertedIndexConfig': {'bm25': {'b': 0.75, 'k1': 1.2},\n",
                            "  'cleanupIntervalSeconds': 60,\n",
                            "  'stopwords': {'additions': None, 'preset': 'en', 'removals': None}},\n",
                            " 'multiTenancyConfig': {'enabled': False},\n",
                            " 'properties': [{'dataType': ['text'],\n",
                            "   'description': 'Text property',\n",
                            "   'indexFilterable': True,\n",
                            "   'indexSearchable': True,\n",
                            "   'name': 'text',\n",
                            "   'tokenization': 'whitespace'},\n",
                            "  {'dataType': ['text'],\n",
                            "   'description': 'The ref_doc_id of the Node',\n",
                            "   'indexFilterable': True,\n",
                            "   'indexSearchable': True,\n",
                            "   'name': 'ref_doc_id',\n",
                            "   'tokenization': 'whitespace'},\n",
                            "  {'dataType': ['text'],\n",
                            "   'description': 'node_info (in JSON)',\n",
                            "   'indexFilterable': True,\n",
                            "   'indexSearchable': True,\n",
                            "   'name': 'node_info',\n",
                            "   'tokenization': 'whitespace'},\n",
                            "  {'dataType': ['text'],\n",
                            "   'description': 'The relationships of the node (in JSON)',\n",
                            "   'indexFilterable': True,\n",
                            "   'indexSearchable': True,\n",
                            "   'name': 'relationships',\n",
                            "   'tokenization': 'whitespace'}],\n",
                            " 'replicationConfig': {'factor': 1},\n",
                            " 'shardingConfig': {'virtualPerPhysical': 128,\n",
                            "  'desiredCount': 1,\n",
                            "  'actualCount': 1,\n",
                            "  'desiredVirtualCount': 128,\n",
                            "  'actualVirtualCount': 128,\n",
                            "  'key': '_id',\n",
                            "  'strategy': 'hash',\n",
                            "  'function': 'murmur3'},\n",
                            " 'vectorIndexConfig': {'skip': False,\n",
                            "  'cleanupIntervalSeconds': 300,\n",
                            "  'maxConnections': 64,\n",
                            "  'efConstruction': 128,\n",
                            "  'ef': -1,\n",
                            "  'dynamicEfMin': 100,\n",
                            "  'dynamicEfMax': 500,\n",
                            "  'dynamicEfFactor': 8,\n",
                            "  'vectorCacheMaxObjects': 1000000000000,\n",
                            "  'flatSearchCutoff': 40000,\n",
                            "  'distance': 'cosine',\n",
                            "  'pq': {'enabled': False,\n",
                            "   'bitCompression': False,\n",
                            "   'segments': 0,\n",
                            "   'centroids': 256,\n",
                            "   'trainingLimit': 100000,\n",
                            "   'encoder': {'type': 'kmeans', 'distribution': 'log-normal'}}},\n",
                            " 'vectorIndexType': 'hnsw',\n",
                            " 'vectorizer': 'none'}"
                        ]
                    },
                    "metadata": {},
                    "output_type": "display_data"
                }
            ],
            "source": [
                "# validate that the schema was created\n",
                "class_schema = client.schema.get(\"LlamaIndex\")\n",
                "display(class_schema)"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 110,
            "id": "3fce23e0-0632-4c72-97d3-e2c845e32555",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stderr",
                    "output_type": "stream",
                    "text": [
                        "Exception in thread TokenRefresh:\n",
                        "Traceback (most recent call last):\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n",
                        "    httplib_response = self._make_request(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 449, in _make_request\n",
                        "    six.raise_from(e, None)\n",
                        "  File \"<string>\", line 3, in raise_from\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 444, in _make_request\n",
                        "    httplib_response = conn.getresponse()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 1374, in getresponse\n",
                        "    response.begin()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 318, in begin\n",
                        "    version, status, reason = self._read_status()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 287, in _read_status\n",
                        "    raise RemoteDisconnected(\"Remote end closed connection without\"\n",
                        "http.client.RemoteDisconnected: Remote end closed connection without response\n",
                        "\n",
                        "During handling of the above exception, another exception occurred:\n",
                        "\n",
                        "Traceback (most recent call last):\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n",
                        "    resp = conn.urlopen(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n",
                        "    retries = retries.increment(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 550, in increment\n",
                        "    raise six.reraise(type(error), error, _stacktrace)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/packages/six.py\", line 769, in reraise\n",
                        "    raise value.with_traceback(tb)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n",
                        "    httplib_response = self._make_request(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 449, in _make_request\n",
                        "    six.raise_from(e, None)\n",
                        "  File \"<string>\", line 3, in raise_from\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 444, in _make_request\n",
                        "    httplib_response = conn.getresponse()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 1374, in getresponse\n",
                        "    response.begin()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 318, in begin\n",
                        "    version, status, reason = self._read_status()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py\", line 287, in _read_status\n",
                        "    raise RemoteDisconnected(\"Remote end closed connection without\"\n",
                        "urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))\n",
                        "\n",
                        "During handling of the above exception, another exception occurred:\n",
                        "\n",
                        "Traceback (most recent call last):\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py\", line 1016, in _bootstrap_inner\n",
                        "    self.run()\n",
                        "  File \"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py\", line 953, in run\n",
                        "    self._target(*self._args, **self._kwargs)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/weaviate/connect/connection.py\", line 276, in periodic_refresh_token\n",
                        "    self._session.token = self._session.refresh_token(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/authlib/oauth2/client.py\", line 252, in refresh_token\n",
                        "    return self._refresh_token(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/authlib/oauth2/client.py\", line 368, in _refresh_token\n",
                        "    resp = self._http_post(url, body=body, auth=auth, headers=headers, **kwargs)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/authlib/oauth2/client.py\", line 425, in _http_post\n",
                        "    return self.session.post(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/sessions.py\", line 637, in post\n",
                        "    return self.request(\"POST\", url, data=data, json=json, **kwargs)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/authlib/integrations/requests_client/oauth2_session.py\", line 109, in request\n",
                        "    return super(OAuth2Session, self).request(\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n",
                        "    resp = self.send(prep, **send_kwargs)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n",
                        "    r = adapter.send(request, **kwargs)\n",
                        "  File \"/Users/jerryliu/Programming/gpt_index/.venv/lib/python3.10/site-packages/requests/adapters.py\", line 501, in send\n",
                        "    raise ConnectionError(err, request=request)\n",
                        "requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))\n",
                        "sys:1: ResourceWarning: Unclosed socket <zmq.Socket(zmq.PUSH) at 0x2c4e7ebc0>\n",
                        "ResourceWarning: Enable tracemalloc to get the object allocation traceback\n"
                    ]
                }
            ],
            "source": [
                "index = VectorStoreIndex(\n",
                "    [], storage_context=storage_context, service_context=service_context\n",
                ")\n",
                "\n",
                "# add documents to index\n",
                "for wiki_title in wiki_titles:\n",
                "    index.insert(docs_dict[wiki_title])"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 68,
            "id": "40f0717a-c868-4570-a8c6-57e3f50ce819",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from llama_index.indices.vector_store.retrievers import VectorIndexAutoRetriever\n",
                "from llama_index.vector_stores.types import MetadataInfo, VectorStoreInfo\n",
                "\n",
                "\n",
                "vector_store_info = VectorStoreInfo(\n",
                "    content_info=\"brief biography of celebrities\",\n",
                "    metadata_info=[\n",
                "        MetadataInfo(\n",
                "            name=\"category\",\n",
                "            type=\"str\",\n",
                "            description=\"Category of the celebrity, one of [Sports, Entertainment, Business, Music]\",\n",
                "        ),\n",
                "        MetadataInfo(\n",
                "            name=\"country\",\n",
                "            type=\"str\",\n",
                "            description=\"Country of the celebrity, one of [United States, Barbados, Portugal]\",\n",
                "        ),\n",
                "    ],\n",
                ")\n",
                "retriever = VectorIndexAutoRetriever(\n",
                "    index,\n",
                "    vector_store_info=vector_store_info,\n",
                "    service_context=service_context,\n",
                "    max_top_k=10000,\n",
                ")"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 69,
            "id": "249a8a74-5bde-4b42-9b43-62764484158b",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using query str: celebrity\n",
                        "Using query str: celebrity\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using filters: {'country': 'United States'}\n",
                        "Using filters: {'country': 'United States'}\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using top_k: 10000\n",
                        "Using top_k: 10000\n"
                    ]
                }
            ],
            "source": [
                "# NOTE: the \"set top-k to 10000\" is a hack to return all data.\n",
                "# Right now auto-retrieval will always return a fixed top-k, there's a TODO to allow it to be None\n",
                "# to fetch all data.\n",
                "# So it's theoretically possible to have the LLM infer a None top-k value.\n",
                "nodes = retriever.retrieve(\n",
                "    \"Tell me about a celebrity from the United States, set top k to 10000\"\n",
                ")"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 70,
            "id": "56408d2f-f532-4010-bf81-7a8487433f9e",
            "metadata": {
                "scrolled": true,
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "Number of nodes: 124\n",
                        "The Super Bowl commercial inspired the 1996 live action/animated film Space Jam, which starred Jordan and Bugs in a fictional story set during the former's first retirement from basketball.They have subsequently appeared together in several commercials for MCI.Jordan also made an appearance in the music video for Michael Jackson's \"Jam\" (1992).Since 2008, Jordan's yearly income from the endorsements is estimated to be over $40 million.In addition, when Jordan's power at the ticket gates was at its highest point, the Bulls regularly sold out both their home and road games.Due to this, Jordan set records in player salary by signing annual contracts worth in excess of US$30 million per season.An academic study found that Jordan's first NBA comeback resulted in an increase in the market capitalization of his client firms of more than $1 billion.Most of Jordan's endorsement deals, including his first deal with Nike, were engineered by his agent, David Falk.Jordan has described Falk as \"the best at what he does\" and that \"marketing-wise, he's great.He's the one who came up with the concept of 'Air Jordan'.\"\n",
                        "Musk blamed the estrangement of his daughter on what the Financial Times characterized as \"the supposed takeover of elite schools and universities by neo-Marxists.\"In 2008, Musk began dating English actress Talulah Riley.They married two years later at Dornoch Cathedral in Scotland.In 2012, the couple divorced, before remarrying the following year.After briefly filing for divorce in 2014, Musk finalized a second divorce from Riley in 2016.Musk then dated Amber Heard for several months in 2017; he had reportedly been pursuing her since 2012.Johnny Depp later accused Musk of having an affair with Heard while she was still married to Depp.Musk and Heard both denied the affair.In 2018, Musk and Canadian musician Grimes revealed that they were dating.Grimes gave birth to their son in May 2020.According to Musk and Grimes, his name was \"X Æ A-12\" (); however, the name would have violated California regulations as it contained characters that are not in the modern English alphabet, and was then changed to \"X Æ A-Xii\".This drew more confusion, as Æ is not a letter in the modern English alphabet.\n",
                        "=== Film and television ===\n",
                        "Jordan played himself in the 1996 comedy film Space Jam.The film received mixed reviews, but it was a box office success, making $230 million worldwide, and earned more than $1 billion through merchandise sales.In 2000, Jordan was the subject of an IMAX documentary about his career with the Chicago Bulls, especially the 1998 NBA playoffs, titled Michael Jordan to the Max.Two decades later, the same period of Jordan's life was covered in much greater and more personal detail by the Emmy Award-winning The Last Dance, a 10-part TV documentary which debuted on ESPN in April and May 2020.The Last Dance relied heavily on about 500 hours of candid film of Jordan's and his teammates' off-court activities which an NBA Entertainment crew had shot over the course of the 1997–98 NBA season for use in a documentary.The project was delayed for many years because Jordan had not yet given his permission for the footage to be used.\n",
                        "He was interviewed at three homes associated with the production and did not want cameras in his home or on his plane, as according to director Jason Hehir \"there are certain aspects of his life that he wants to keep private\".Jordan granted rapper Travis Scott permission to film a music video for his single \"Franchise\" at his home in Highland Park, Illinois.Jordan appeared in the 2022 miniseries The Captain, which follows the life and career of Derek Jeter.\n",
                        "\n",
                        "\n",
                        "=== Books ===\n",
                        "Jordan has authored several books focusing on his life, basketball career, and world view.\n",
                        "\n",
                        "Rare Air: Michael on Michael, with Mark Vancil and Walter Iooss (Harper San Francisco, 1993).\n",
                        "I Can't Accept Not Trying: Michael Jordan on the Pursuit of Excellence, with Mark Vancil and Sandro Miller (Harper San Francisco, 1994).\n",
                        "For the Love of the Game: My Story, with Mark Vancil (Crown Publishers, 1998).\n",
                        "Driven from Within, with Mark Vancil (Atria Books, 2005).\n",
                        "\"In April 2023, the government of the U.S. Virgin Islands sought to subpoena Musk for documents in a lawsuit alleging that JPMorgan Chase profited from Jeffrey Epstein's sex trafficking operation.In May, a judge granted the U.S. Virgin Islands' request to serve Musk electronically through Tesla after the U.S. territory had difficulty locating him.The efforts to subpoena Musk for documents do not implicate him in any wrongdoing and do not seek to have Musk testify under oath.\n",
                        "\n",
                        "\n",
                        "== Public perception ==\n",
                        "\n",
                        "Though Musk's ventures were influential within their own industries in the 2000s, he only became a public figure in the early 2010s.He has often been described as an eccentric who makes spontaneous and controversial statements, contrary to other billionaires who prefer reclusiveness to protect their businesses.Celebrated by fans and hated by critics, Musk was described by Vance as having become very polarizing because of his \"part philosopher, part troll\" role on Twitter.With Steve Jobs and Donald Trump, Musk served as inspiration for the characterization of Tony Stark in the Marvel film Iron Man (2008).Musk had a cameo appearance in the film's 2010 sequel, Iron Man 2.\n",
                        "Knafel claimed Jordan promised her $5 million for remaining silent and agreeing not to file a paternity suit after Knafel learned she was pregnant in 1991; a DNA test showed Jordan was not the father of the child.Jordan proposed to his longtime girlfriend, Cuban-American model Yvette Prieto, on Christmas 2011, and they were married on April 27, 2013, at Bethesda-by-the-Sea Episcopal Church.It was announced on November 30, 2013, that the two were expecting their first child together.On February 11, 2014, Prieto gave birth to identical twin daughters named Victoria and Ysabel.In 2019, Jordan became a grandfather when his daughter Jasmine gave birth to a son, whose father is professional basketball player Rakeem Christmas.\n",
                        "\n",
                        "\n",
                        "== Media figure and business interests ==\n",
                        "\n",
                        "\n",
                        "=== Endorsements ===\n",
                        "Jordan is one of the most marketed sports figures in history.He has been a major spokesman for such brands as Nike, Coca-Cola, Chevrolet, Gatorade, McDonald's, Ball Park Franks, Rayovac, Wheaties, Hanes, and MCI.\n",
                        "=== Business ventures ===\n",
                        "In June 2010, Jordan was ranked by Forbes as the 20th-most-powerful celebrity in the world, with $55 million earned between June 2009 and June 2010.According to Forbes, Jordan Brand generates $1 billion in sales for Nike.In June 2014, Jordan was named the first NBA player to become a billionaire, after he increased his stake in the Charlotte Hornets from 80% to 89.5%.On January 20, 2015, Jordan was honored with the Charlotte Business Journal's Business Person of the Year for 2014.In 2017, he became a part owner of the Miami Marlins of Major League Baseball.Forbes designated Jordan as the athlete with the highest career earnings in 2017.From his Jordan Brand income and endorsements, Jordan's 2015 income was an estimated $110 million, the most of any retired athlete.As of 2023, his net worth is estimated at $2 billion by Forbes, making him the fifth-richest African-American, behind Robert F. Smith, David Steward, Oprah Winfrey, and Rihanna.Jordan co-owns an automotive group which bears his name.\n",
                        "He reportedly hosted large, ticketed house parties to help pay for tuition, and wrote a business plan for an electronic book-scanning service similar to Google Books.In 1994, Musk held two internships in Silicon Valley: one at energy storage startup Pinnacle Research Institute, which investigated electrolytic ultracapacitors for energy storage, and another at Palo Alto–based startup Rocket Science Games.In 1995, he was accepted to a PhD program in materials science at Stanford University.However, Musk decided to join the Internet boom, dropping out two days after being accepted and applied for a job at Netscape, to which he reportedly never received a response.\n",
                        "\n",
                        "\n",
                        "== Business career ==\n",
                        "He starred as himself in the live-action/animation hybrid film Space Jam (1996) and was the central focus of the Emmy-winning documentary series The Last Dance (2020).He became part-owner and head of basketball operations for the Charlotte Hornets (then named the Bobcats) in 2006 and bought a controlling interest in 2010, before selling his majority stake in 2023, and he is also the owner of 23XI Racing in the NASCAR Cup Series.In 2016, he became the first billionaire player in NBA history.That year, President Barack Obama awarded him the Presidential Medal of Freedom.As of 2023, his net worth is estimated at $2 billion.\n",
                        "\n",
                        "\n",
                        "== Early life ==\n",
                        "Michael Jeffrey Jordan was born at Cumberland Hospital in the Fort Greene neighborhood of New York City's Brooklyn borough on February 17, 1963, to bank employee Deloris (née Peoples) and equipment supervisor James R. Jordan Sr.He has two older brothers, James R. Jordan Jr. and fellow basketball player Larry Jordan, as well as an older sister named Deloris and a younger sister named Roslyn.\n",
                        "The New York Post revealed that Musk's ex-wife Talulah Riley had encouraged Musk to purchase Twitter, specifically citing the Bee's ban.Following the acquisition, he made reinstatement of accounts like the Bee an immediate priority.The Independent reported that Musk has \"appealed to far-right activists and influencers and unleashed a wave of hate speech and abuse aimed at LGBT+ people\" since taking control of Twitter.On December 18, Musk posted a poll to his Twitter account asking users to decide whether he should step down as the head of Twitter, with 57.5% out of the more than 17.5 million votes supporting that decision.Musk then announced that he would resign as CEO \"as soon as I find someone foolish enough to take the job\".On May 11, 2023, Musk announced that he would be stepping down from the CEO position and instead moving to \"exec chair & CTO, overseeing product, software & sysops\" and announced the new CEO, former NBCUniversal executive Linda Yaccarino.\n",
                        "Musk has made cameos and appearances in other films such as Machete Kills (2013), Why Him?(2016), and Men in Black: International (2019).Television series in which he has appeared include The Simpsons (\"The Musk Who Fell to Earth\", 2015), The Big Bang Theory (\"The Platonic Permutation\", 2015), South Park (\"Members Only\", 2016), Young Sheldon (\"A Patch, a Modem, and a Zantac®\", 2017), Rick and Morty (\"One Crew over the Crewcoo's Morty\", 2019), and Saturday Night Live (2021).He contributed interviews to the documentaries Racing Extinction (2015) and the Werner Herzog-directed Lo and Behold (2016).Musk was elected a Fellow of the Royal Society (FRS) in 2018.In 2015, he received an honorary doctorate in engineering and technology from Yale University and IEEE Honorary Membership.\n",
                        "In March 2019, Musk was later one of the 187 people who received various honors conferred by the King of Thailand for involvement in the rescue effort.Soon after the rescue, Vernon Unsworth, a British recreational caver who had been exploring the cave for the previous six years and played a key advisory role in the operation, criticized the submarine on CNN as amounting to nothing more than a public relations effort with no chance of success, maintaining that Musk \"had no conception of what the cave passage was like\" and \"can stick his submarine where it hurts\".Musk asserted on Twitter that the device would have worked and referred to Unsworth as a \"pedo guy\".He deleted the tweets, and apologized, and he deleted his responses to critical tweets from Cher Scarlett, a software engineer, which had caused his followers to harass her.In an email to BuzzFeed News, Musk later called Unsworth a \"child rapist\" and said that he had married a child.In September, Unsworth filed a defamation suit in the District Court for the Central District of California.\n",
                        "== See also ==\n",
                        "Forbes' list of the world's highest-paid athletes\n",
                        "List of athletes who came out of retirement\n",
                        "List of NBA teams by single season win percentage\n",
                        "Michael Jordan's Restaurant\n",
                        "Michael Jordan: Chaos in the Windy City\n",
                        "Michael Jordan in Flight\n",
                        "NBA 2K11\n",
                        "NBA 2K12\n",
                        "\n",
                        "\n",
                        "== Notes ==\n",
                        "\n",
                        "\n",
                        "== References ==\n",
                        "\n",
                        "\n",
                        "== Sources ==\n",
                        "Condor, Bob (1998).Michael Jordan's 50 Greatest Games.Carol Publishing Group.ISBN 978-0-8065-2030-8.Halberstam, David (2000).Playing for Keeps: Michael Jordan and the World He Made.Broadway Books.ISBN 978-0-7679-0444-5.Jordan, Michael (1998).For the Love of the Game: My Story.New York City: Crown Publishers.ISBN 978-0-609-60206-5.Kotler, Philip; Rein, Irving J.; Shields, Ben (2006).The Elusive Fan: Reinventing Sports in a Crowded Marketplace.The McGraw-Hill Companies.ISBN 978-0-07-149114-3.\n",
                        "23 retired by the North Carolina Tar HeelsHigh schoolMcDonald's All-American – 1981\n",
                        "Parade All-American First Team – 1981Halls of FameTwo-time Naismith Memorial Basketball Hall of Fame inductee:\n",
                        "Class of 2009 – individual\n",
                        "Class of 2010 – as a member of the \"Dream Team\"\n",
                        "United States Olympic Hall of Fame – Class of 2009 (as a member of the \"Dream Team\")\n",
                        "North Carolina Sports Hall of Fame – Class of 2010\n",
                        "Two-time FIBA Hall of Fame inductee:\n",
                        "Class of 2015 – individual\n",
                        "Class of 2017 – as a member of the \"Dream Team\"MediaThree-time Associated Press Athlete of the Year – 1991, 1992, 1993\n",
                        "Sports Illustrated Sportsperson of the Year – 1991\n",
                        "Ranked No.1 by Slam magazine's \"Top 50 Players of All-Time\"\n",
                        "Ranked No.1 by ESPN SportsCentury's \"Top North American Athletes of the 20th Century\"\n",
                        "10-time ESPY Award winner (in various categories)\n",
                        "1997 Marca Leyenda winnerNational2016 Presidential Medal of FreedomState/localStatue inside the United Center\n",
                        "Section of Madison Street in Chicago renamed Michael Jordan Drive – 1994\n",
                        "=== Music ===\n",
                        "In 2019, Musk, through Emo G Records, released a rap track, \"RIP Harambe\", on SoundCloud. The track, which refers to the killing of Harambe the gorilla and the subsequent Internet sensationalism surrounding the event, was performed by Yung Jake, written by Yung Jake and Caroline Polachek, and produced by BloodPop. The following year, Musk released an EDM track, \"Don't Doubt Ur Vibe\", featuring his own lyrics and vocals. While Guardian critic Alexi Petridis described it as \"indistinguishable... from umpteen competent but unthrilling bits of bedroom electronica posted elsewhere on Soundcloud\", TechCrunch said it was \"not a bad representation of the genre\".\n",
                        "Also in July 2022, The Wall Street Journal reported that Musk allegedly had an affair with Nicole Shanahan, the wife of Google co-founder Sergey Brin, in 2021, leading to their divorce the following year.Musk denied the report.\n",
                        "\n",
                        "\n",
                        "=== Legal matters ===\n",
                        "\n",
                        "In May 2022, Business Insider cited an anonymous friend of an unnamed SpaceX contract flight attendant, alleging that Musk engaged in sexual misconduct in 2016.The source stated that in November 2018, Musk, SpaceX, and the former flight attendant entered into a severance agreement granting the attendant a $250,000 payment in exchange for a promise not to sue over the claims.Musk responded, \"If I were inclined to engage in sexual harassment, this is unlikely to be the first time in my entire 30-year career that it comes to light\".He accused the article from Business Insider of being a \"politically motivated hit piece\".After the release of the Business Insider article, Tesla's stock fell by more than 6%, decreasing Musk's net worth by $10 billion.Barron's wrote \"...some investors considered key-man risk – the danger that a company could be badly hurt by the loss of one individual.\n",
                        "=== Works cited ===\n",
                        "Belfiore, Michael (2007). Rocketeers. New York: HarperCollins. ISBN 9780061149023.\n",
                        "Berger, Eric (2021). Liftoff. William Morrow and Company. ISBN 9780062979971.\n",
                        "Jackson, Erik (2004). The PayPal Wars: Battles with eBay, the Media, the Mafia, and the Rest of Planet Earth. Los Angeles: World Ahead Publishing. ISBN 9780974670102.\n",
                        "Kidder, David; Hoffman, Reid (2013). The Startup Playbook: Secrets of the Fastest Growing Start-Ups from the founding Entrepreneurs. San Francisco: Chronicle Books. ISBN 9781452105048.\n",
                        "Vance, Ashlee (2017) [2015]. Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future (2nd ed.). New York: Ecco. ISBN 9780062301253.\n",
                        "They had two sons, Jeffrey and Marcus, and a daughter, Jasmine.The Jordans filed for divorce on January 4, 2002, citing irreconcilable differences, but reconciled shortly thereafter.They again filed for divorce and were granted a final decree of dissolution of marriage on December 29, 2006, commenting that the decision was made \"mutually and amicably\".It is reported that Juanita received a $168 million settlement (equivalent to $244 million in 2022), making it the largest celebrity divorce settlement on public record at the time.In 1991, Jordan purchased a lot in Highland Park, Illinois, where he planned to build a 56,000-square-foot (5,200 m2) mansion.It was completed in 1995.He listed the mansion for sale in 2012.He also owns homes in North Carolina and Jupiter Island, Florida.On July 21, 2006, a judge in Cook County, Illinois, determined that Jordan did not owe his alleged former lover Karla Knafel $5 million in a breach of contract claim.Jordan had allegedly paid Knafel $250,000 to keep their relationship a secret.\n",
                        "2003\n",
                        "Three-time NBA All-Star Game MVP – 1988, 1996, 1998\n",
                        "10-time All-NBA First Team – 1987–1993, 1996–1998\n",
                        "One-time All-NBA Second Team – 1985\n",
                        "Nine-time NBA All-Defensive First Team – 1988–1993, 1996–1998\n",
                        "NBA All-Rookie First Team – 1985\n",
                        "Two-time NBA Slam Dunk Contest champion – 1987, 1988\n",
                        "Two-time IBM Award winner – 1985, 1989\n",
                        "Named one of the 50 Greatest Players in NBA History in 1996\n",
                        "Selected on the NBA 75th Anniversary Team in 2021\n",
                        "No.23 retired by the Chicago Bulls\n",
                        "No.\n",
                        "Michael Jeffrey Jordan (born February 17, 1963), also  known by his initials MJ, is an American former professional basketball player and businessman.The official National Basketball Association (NBA) website states: \"By acclamation, Michael Jordan is the greatest basketball player of all time.\"He played fifteen seasons in the NBA, winning six NBA championships with the Chicago Bulls.He was integral in popularizing the sport of basketball and the NBA around the world in the 1980s and 1990s, becoming a global cultural icon.Jordan played college basketball for three seasons under coach Dean Smith with the North Carolina Tar Heels.As a freshman, he was a member of the Tar Heels' national championship team in 1982.Jordan joined the Bulls in 1984 as the third overall draft pick and quickly emerged as a league star, entertaining crowds with his prolific scoring while gaining a reputation as one of the game's best defensive players.His leaping ability, demonstrated by performing slam dunks from the free-throw line in Slam Dunk Contests, earned him the nicknames \"Air Jordan\" and \"His Airness\".Jordan won his first NBA title with the Bulls in 1991 and followed that achievement with titles in 1992 and 1993, securing a three-peat.\n",
                        "== Personal life ==\n",
                        "From the early 2000s until late 2020, Musk resided in California, where both Tesla and SpaceX were founded. In 2020, he relocated to Texas, saying that California had become \"complacent\" about its economic success. While hosting Saturday Night Live in May 2021, Musk revealed that he has Asperger syndrome. Musk is also a practitioner of Brazilian jiu-jitsu.\n",
                        "\n",
                        "\n",
                        "=== Relationships and children ===\n",
                        "Musk met his first wife, Canadian author Justine Wilson, while attending Queen's University in Ontario, Canada; and they married in 2000.In 2002, their first child died of sudden infant death syndrome at the age of 10 weeks.After his death, the couple decided to use IVF to continue their family.They had twins in 2004 followed by triplets in 2006.The couple divorced in 2008 and shared custody of their children.In 2022, one of the twins officially changed her name to reflect her gender identity as a trans woman, and to use Wilson as her last name because she no longer wished to be associated with Musk.\n",
                        "In the September 1996 issue of Sport, which was the publication's 50th-anniversary issue, Jordan was named the greatest athlete of the past 50 years.Jordan's athletic leaping ability, highlighted in his back-to-back Slam Dunk Contest championships in 1987 and 1988, is credited by many people with having influenced a generation of young players.Several NBA players, including James and Dwyane Wade, have stated that they considered Jordan their role model while they were growing up.In addition, commentators have dubbed a number of next-generation players \"the next Michael Jordan\" upon their entry to the NBA, including Penny Hardaway, Grant Hill, Allen Iverson, Bryant, Vince Carter, James, and Wade.Some analysts, such as The Ringer's Dan Devine, drew parallels between Jordan's experiment at point guard in the 1988–89 season and the modern NBA; for Devine, it \"inadvertently foreshadowed the modern game's stylistic shift toward monster-usage primary playmakers\", such as Russell Westbrook, James Harden, Luka Dončić, and James.Don Nelson stated: \"I would've been playing him at point guard the day he showed up as a rookie.\n",
                        "In his defense, Musk argued that \"'pedo guy' was a common insult used in South Africa when I was growing up ... synonymous with 'creepy old man' and is used to insult a person's appearance and demeanor\".The defamation case began in December 2019, with Unsworth seeking $190 million in damages.During the trial Musk apologized to Unsworth again for the tweet.On December 6, the jury found in favor of Musk and ruled he was not liable.\n",
                        "Elon Reeve Musk ( EE-lon; born June 28, 1971) is a business magnate and investor.Musk is the founder, chairman, CEO and chief technology officer of SpaceX;  angel investor, CEO, product architect and former chairman of Tesla, Inc.; owner, chairman and CTO of X Corp.; founder of the Boring Company; co-founder of Neuralink and OpenAI; and president of the Musk Foundation.He is the wealthiest person in the world, with an estimated net worth of US$217 billion as of August 2023, according to the Bloomberg Billionaires Index, and $219 billion according to Forbes, primarily from his ownership stakes in both Tesla and SpaceX.Musk was born in Pretoria, South Africa, and briefly attended the University of Pretoria before immigrating to Canada at age 18, acquiring citizenship through his Canadian-born mother.Two years later, he matriculated at Queen's University in Kingston, Ontario.Musk later transferred to the University of Pennsylvania, and received bachelor's degrees in economics and physics there.He moved to California in 1995 to attend Stanford University.\n",
                        "He also endorsed Kanye West's 2020 presidential campaign.He said he voted for Joe Biden in the 2020 U.S. presidential election.In 2022, Musk said that he could \"no longer support\" the Democrats because they are the \"party of division & hate\", and wrote a tweet encouraging \"independent-minded voters\" to vote Republican in the 2022 U.S. elections, which was an outlier among social media executives who typically avoid partisan political advocacy.He has supported Republican Ron DeSantis for the 2024 U.S. presidential election, and Twitter hosted DeSantis's campaign announcement on a Twitter Spaces event As of May 2023, Musk was declining to endorse any specific candidate.Musk opposes a \"billionaire's tax\", and has argued on Twitter with more left-leaning Democratic politicians such as Bernie Sanders, Alexandria Ocasio-Cortez, and Elizabeth Warren.He has raised questions about the Black Lives Matter protests, partially based on the fact that the phrase \"Hands up, don't shoot\" was made up.\n",
                        "Two months later, Musk contracted COVID-19 and suggested his COVID-19 rapid antigen test results were dubious, after which the phrase \"Space Karen\" trended on Twitter, in reference to Musk.However, in December 2021, Musk revealed that he and his eligible children had received the vaccine.\n",
                        "\n",
                        "\n",
                        "=== Finance ===\n",
                        "Musk said that the U.S. government should not provide subsidies to companies, but impose a carbon tax to discourage poor behavior.The free market, in his view, would achieve the best solution, and producing environmentally unfriendly vehicles should have consequences.Tesla has received billions of dollars in subsidies.In addition, Tesla made large sums from government-initiated systems of zero-emissions credits offered in California and at the United States federal level, which facilitated initial consumer adoption of Tesla vehicles, as the tax credits given by governments enabled Tesla's battery electric vehicles to be price-competitive, in comparison with existing lower-priced internal combustion engine vehicles.\n",
                        "== Personal views and Twitter (later X) usage ==\n",
                        "\n",
                        "Since joining Twitter (now known as X) in 2009, Musk has been an active user and has over 100 million followers as of June 2022. He posts memes, promotes business interests, and comments on contemporary political and cultural issues. Musk's statements have provoked controversy, such as for mocking preferred gender pronouns, and comparing Canadian prime minister Justin Trudeau to Adolf Hitler. The New York Times describes his contributions to international relations as \"chaotic\", and critics of Musk argue that there is a lack of separation between his opinions and his business interests. As CEO of Twitter, Musk emerged as a source of misinformation, for example by suggesting online details about mass murderer Mauricio Garcia's apparent interest in Nazism could have been planted as part of a psyop. Allegations of him being transphobic appeared as well in response to actions taken by Twitter under his guidance. The Israel government and several media outlets accused Musk of antisemitism due to him spreading George Soros conspiracy theories, although some Israeli officials defended Musk.\n",
                        "\n",
                        "\n",
                        "=== Existential threats ===\n",
                        "Musk has been described as believing in longtermism, emphasizing the needs of future populations.\n",
                        "=== Tham Luang cave rescue and defamation case ===\n",
                        "\n",
                        "In July 2018, Musk arranged for his employees to build a mini-submarine to assist the rescue of children trapped in a flooded cavern in Thailand.Richard Stanton, leader of the international rescue diving team, urged Musk to facilitate the construction of the vehicle as a back-up, in case flooding worsened.Engineers at SpaceX and the Boring Company built the mini-submarine from a Falcon 9 liquid oxygen transfer tube in eight hours and personally delivered it to Thailand.By this time, however, eight of the 12 children, had already been rescued, the rescuers employing full face masks, oxygen, and anesthesia; consequently, Thai authorities declined to use the submarine.\n",
                        "==== First retirement and stint in Minor League Baseball (1993–1995) ====\n",
                        "\n",
                        "On October 6, 1993, Jordan announced his retirement, saying that he lost his desire to play basketball.Jordan later said that the murder of his father three months earlier helped shape his decision.James R. Jordan Sr. was murdered on July 23, 1993, at a highway rest area in Lumberton, North Carolina, by two teenagers, Daniel Green and Larry Martin Demery, who carjacked his Lexus bearing the license plate \"UNC 0023\".His body, dumped in a South Carolina swamp, was not discovered until August 3.Green and Demery were found after they made calls on James Jordan's cell phone, convicted at a trial, and sentenced to life in prison.Jordan was close to his father; as a child, he imitated the way his father stuck out his tongue while absorbed in work.He later adopted it as his own signature, often displaying it as he drove to the basket.In 1996, he founded a Chicago-area Boys & Girls Club and dedicated it to his father.\n",
                        "The child was eventually named X AE A-XII Musk, with \"X\" as a first name, \"AE A-XII\" as a middle name, and \"Musk\" as surname.In December 2021, Grimes and Musk had a second child, a daughter named Exa Dark Sideræl Musk (nicknamed \"Y\"), born via surrogacy.Despite the pregnancy, Musk confirmed reports that the couple were \"semi-separated\" in September 2021; in an interview with Time in December 2021, he said he was single.In March 2022, Grimes said of her relationship with Musk: \"I would probably refer to him as my boyfriend, but we're very fluid.\"Later that month, Grimes tweeted that she and Musk had broken up again but remained on good terms.In July 2022, Insider published court documents revealing that Musk had had twins with Shivon Zilis, director of operations and special projects at Neuralink, in November 2021.They were born weeks before Musk and Grimes had their second child via surrogate in December.The news \"raise[d] questions about workplace ethics\", given that Zilis directly reported to Musk.\n",
                        "The company has a Nissan dealership in Durham, North Carolina, acquired in 1990, and formerly had a Lincoln–Mercury dealership from 1995 until its closure in June 2009.The company also owned a Nissan franchise in Glen Burnie, Maryland.The restaurant industry is another business interest of Jordan's.Restaurants he has owned include a steakhouse in New York City's Grand Central Terminal, among others; that restaurant closed in 2018.Jordan is the majority investor in a golf course, Grove XXIII, under construction in Hobe Sound, Florida.In September 2020, Jordan became an investor and advisor for DraftKings.\n",
                        "\n",
                        "\n",
                        "=== Philanthropy ===\n",
                        "From 2001 to 2014, Jordan hosted an annual golf tournament, the Michael Jordan Celebrity Invitational, that raised money for various charities.In 2006, Jordan and his wife Juanita pledged $5 million to Chicago's Hales Franciscan High School.The Jordan Brand has made donations to Habitat for Humanity and a Louisiana branch of the Boys & Girls Clubs of America.The Make-A-Wish Foundation named Jordan its Chief Wish Ambassador in 2008.In 2013, he granted his 200th wish for the organization.\n",
                        "After Jordan received word of his acceptance into the Hall of Fame, he selected Class of 1996 member David Thompson to present him.As Jordan would later explain during his induction speech in September 2009, he was not a fan of the Tar Heels when growing up in North Carolina but greatly admired Thompson, who played for the rival NC State Wolfpack.In September, he was inducted into the Hall with several former Bulls teammates in attendance, including Scottie Pippen, Dennis Rodman, Charles Oakley, Ron Harper, Steve Kerr, and Toni Kukoč.Dean Smith and Doug Collins, two of Jordan's former coaches, were also among those present.His emotional reaction during his speech when he began to cry was captured by Associated Press photographer Stephan Savoia and would later go viral on social media as the \"Crying Jordan\" Internet meme.In 2016, President Barack Obama honored Jordan with the Presidential Medal of Freedom.In October 2021, Jordan was named to the NBA 75th Anniversary Team.In September 2022, Jordan's jersey in which he played the opening game of the 1998 NBA Finals was sold for $10.1 million, making it the most expensive game-worn sports memorabilia in history.\n",
                        "Awards for his contributions to the development of the Falcon rockets include the American Institute of Aeronautics and Astronautics George Low Transportation Award in 2008, the Fédération Aéronautique Internationale Gold Space Medal in 2010, and the Royal Aeronautical Society Gold Medal in 2012.Time has listed Musk as one of the most influential people in the world on four occasions in 2010, 2013, 2018, and 2021.Musk was selected as Time's \"Person of the Year\" for 2021.Time editor-in-chief Edward Felsenthal wrote that \"Person of the Year is a marker of influence, and few individuals have had more influence than Musk on life on Earth, and potentially life off Earth too\".In February 2022, Musk was elected as a member of the National Academy of Engineering.\n",
                        "\n",
                        "\n",
                        "== Notes and references ==\n",
                        "\n",
                        "\n",
                        "=== Notes ===\n",
                        "\n",
                        "\n",
                        "=== Citations ===\n",
                        "Kruger, Mitchell (2003).One Last Shot: The Story of Michael Jordan's Comeback.New York City: St. Martin's Paperbacks.ISBN 978-0-312-99223-1.Lazenby, Roland (2014).Michael Jordan: The Life.New York City: Little, Brown and Company.ISBN 978-0-316-19477-8.LaFeber, Walter (2002).Michael Jordan and the New Global Capitalism.W. W. Norton.ISBN 978-0-393-32369-6.Markovits, Andrei S.; Rensman, Lars (June 3, 2010).Gaming the World: How Sports are Reshaping Global Politics and Culture.Princeton University Press.ISBN 978-0-691-13751-3.Porter, David L. (2007).Michael Jordan: A Biography.Greenwood Publishing Group.ISBN 978-0-313-33767-3.The Sporting News Official NBA Register 1994–95 (1994).The Sporting News.ISBN 978-0-89204-501-3.\n",
                        "His mother, Maye Musk (née Haldeman), is a model and dietitian born in Saskatchewan, Canada, and raised in South Africa.His father, Errol Musk, is a South African electromechanical engineer, pilot, sailor, consultant, and property developer, who partly owned a Zambian emerald mine near Lake Tanganyika.Musk has a younger brother, Kimbal, and a younger sister, Tosca.Musk's family was wealthy during his youth.His father was elected to the Pretoria City Council as a representative of the anti-apartheid Progressive Party and has said that his children shared their father's dislike of apartheid.His maternal grandfather, Joshua Haldeman, was an American-born Canadian who took his family on record-breaking journeys to Africa and Australia in a single-engine Bellanca airplane.After his parents divorced in 1980, Musk chose to live primarily with his father.Musk later regretted his decision and became estranged from his father.He has a paternal half-sister and a half-brother.Maye Musk has said of her son that he \"was shy and awkward at school\" and \"didn't have many friends\".\n",
                        "He holds the NBA records for career regular season scoring average (30.1 points per game) and career playoff scoring average (33.4 points per game).In 1999, he was named the 20th century's greatest North American athlete by ESPN and was second to Babe Ruth on the Associated Press' list of athletes of the century.Jordan was twice inducted into the Naismith Memorial Basketball Hall of Fame, once in 2009 for his individual career, and again in 2010 as part of the 1992 United States men's Olympic basketball team (\"The Dream Team\").He became a member of the United States Olympic Hall of Fame in 2009, a member of the North Carolina Sports Hall of Fame in 2010, and an individual member of the FIBA Hall of Fame in 2015 and a \"Dream Team\" member in 2017.In 2021, he was named to the NBA 75th Anniversary Team.One of the most effectively marketed athletes of his generation, Jordan is known for his product endorsements.He fueled the success of Nike's Air Jordan sneakers, which were introduced in 1984 and remain popular today.\n",
                        "This included about $12.5 billion in loans against his Tesla stock and $21 billion in equity financing.Tesla's stock market value sank by over $100 billion the next day in reaction to the deal, causing Musk to lose around $30 billion of his net worth.He subsequently tweeted criticism of Twitter executive Vijaya Gadde's policies to his 86 million followers, which led to some of them engaging in sexist and racist harassment against her.Exactly a month after announcing the takeover, Musk stated that the deal was \"on hold\" following a report that 5% of Twitter's daily active users were spam accounts, causing Twitter shares to drop more than 10 percent.Although he initially affirmed his commitment to the acquisition, he sent notification of his termination of the deal in July; Twitter's Board of Directors responded that they were committed to holding him to the transaction.On July 12, 2022, Twitter formally sued Musk in the Chancery Court of Delaware for breaching a legally binding agreement to purchase Twitter.In October 2022, Musk reversed again, offering to purchase Twitter at $54.20 per share.\n",
                        "Coincidentally, Jordan and the Bulls met Barkley and his Phoenix Suns in the 1993 NBA Finals.The Bulls won their third NBA championship on a game-winning shot by John Paxson and a last-second block by Horace Grant, but Jordan was once again Chicago's leader.He averaged a Finals-record 41.0 ppg during the six-game series, and became the first player in NBA history to win three straight Finals MVP awards.He scored more than 30 points in every game of the series, including 40 or more points in four consecutive games.With his third Finals triumph, Jordan capped off a seven-year run where he attained seven scoring titles and three championships, but there were signs that Jordan was tiring of his massive celebrity and all of the non-basketball hassles in his life.\n",
                        "\n",
                        "\n",
                        "==== Gambling ====\n",
                        "During the Bulls' 1993 NBA playoffs, Jordan was seen gambling in Atlantic City, New Jersey, the night before Game 2 of the Eastern Conference Finals against the New York Knicks.\n",
                        "The previous year, he admitted that he had to cover $57,000 in gambling losses, and author Richard Esquinas wrote a book in 1993 claiming he had won $1.25 million from Jordan on the golf course.David Stern, the commissioner of the NBA, denied in 1995 and 2006 that Jordan's 1993 retirement was a secret suspension by the league for gambling, but the rumor spread widely.In 2005, Jordan discussed his gambling with Ed Bradley of 60 Minutes and admitted that he made reckless decisions.Jordan stated: \"Yeah, I've gotten myself into situations where I would not walk away and I've pushed the envelope.Is that compulsive?Yeah, it depends on how you look at it.If you're willing to jeopardize your livelihood and your family, then yeah.\"When Bradley asked him if his gambling ever got to the level where it jeopardized his livelihood or family, Jordan replied: \"No.\"In 2010, Ron Shelton, director of Jordan Rides the Bus, said that he began working on the documentary believing that the NBA had suspended him, but that research \"convinced [him it] was nonsense\".\n",
                        "The media, hoping to recreate a Magic–Bird rivalry, highlighted the similarities between \"Air\" Jordan and Clyde \"The Glide\" during the pre-Finals hype.In the first game, Jordan scored a Finals-record 35 points in the first half, including a record-setting six three-point field goals.After the sixth three-pointer, he jogged down the court shrugging as he looked courtside.Marv Albert, who broadcast the game, later stated that it was as if Jordan was saying: \"I can't believe I'm doing this.\"The Bulls went on to win Game 1 and defeat the Blazers in six games.Jordan was named Finals MVP for the second year in a row, and finished the series averaging 35.8 ppg, 4.8 rpg, and 6.5 apg, while shooting 52.6% from the floor.In the 1992–93 season, despite a 32.6 ppg, 6.7 rpg, and 5.5 apg campaign, including a second-place finish in Defensive Player of the Year voting, Jordan's streak of consecutive MVP seasons ended, as he lost the award to his friend Charles Barkley, which upset him.\n",
                        "While this resulted in saved costs for SpaceX's rocket, vertical integration has caused many usability problems for Tesla's software.Musk's handling of employees—whom he communicates with directly through mass emails—has been characterized as \"carrot and stick\", rewarding those \"who offer constructive criticism\" while also being known to impulsively threaten, swear at, and fire his employees.Musk said he expects his employees to work for long hours, sometimes for 80 hours per week.He has his new employees sign strict non-disclosure agreements and often fires in sprees, such as during the Model 3 \"production hell\" in 2018.In 2022, Musk revealed plans to fire 10 percent of Tesla's workforce, due to his concerns about the economy.That same month, he suspended remote work at SpaceX and Tesla and threatened to fire employees who do not work 40 hours per week in the office.Musk's leadership has been praised by some, who credit it with the success of Tesla and his other endeavors, and criticized by others, who see him as callous and his managerial decisions as \"show[ing] a lack of human understanding.\"The 2021 book Power Play contains anecdotes of Musk berating employees.\n",
                        "As a senior, he was selected to play in the 1981 McDonald's All-American Game and scored 30 points, after averaging 27 ppg, 12 rebounds (rpg), and six assists per game (apg) for the season.He was recruited by numerous college basketball programs, including Duke, North Carolina, South Carolina, Syracuse, and Virginia.In 1981, he accepted a basketball scholarship to the University of North Carolina at Chapel Hill, where he majored in cultural geography.\n",
                        "=== 2018 Joe Rogan podcast appearance ===\n",
                        "In 2018, Musk appeared on The Joe Rogan Experience podcast and discussed various topics for over two hours. During the interview, Musk sampled a puff from a cigar consisting, the host claimed, of tobacco laced with cannabis. Tesla stock dropped after the incident, which coincided with the confirmation of the departure of Tesla's vice president of worldwide finance earlier that day. Fortune wondered if the cannabis use could have ramifications for SpaceX contracts with the United States Air Force, though an Air Force spokesperson told The Verge that there was no investigation and that the Air Force was still determining the facts. In 2022, Musk claimed that he and other Space-X employees were subjected to random drug tests for about a year following the incident. In a 60 Minutes interview, Musk said of the incident: \"I do not smoke pot. As anybody who watched that podcast could tell, I have no idea how to smoke pot.\"\n",
                        "=== Private jet ===\n",
                        "\n",
                        "In 2003, Musk said his favorite plane he owned was an L-39 Albatros. He uses a private jet owned by Falcon Landing LLC, a SpaceX-linked company, and acquired a second jet in August 2020. His heavy use of the jet—it flew over 150,000 miles in 2018—and the consequent fossil fuel usage has received criticism.His flight usage is tracked on social media through ElonJet. The Twitter version of the account was blocked in December 2022, after Musk claimed that his son X AE A-XII had been harassed by a stalker after the account posted the airport at which his jet had landed. This led to Musk banning the ElonJet account on Twitter, as well as the accounts of journalists that posted stories regarding the incident, including Donie O'Sullivan, Keith Olbermann, and journalists from The New York Times, The Washington Post, CNN, and The Intercept. Musk equated the reporting to doxxing. The police do not believe there is a link between the account and alleged stalker. Musk later took a Twitter poll on whether the journalists' accounts should be reinstated, which resulted in reinstating the accounts.\n",
                        "\"Although Jordan was a well-rounded player, his \"Air Jordan\" image is also often credited with inadvertently decreasing the jump shooting skills, defense, and fundamentals of young players, a fact Jordan himself has lamented, saying: \"I think it was the exposure of Michael Jordan; the marketing of Michael Jordan.Everything was marketed towards the things that people wanted to see, which was scoring and dunking.That Michael Jordan still played defense and an all-around game, but it was never really publicized.\"During his heyday, Jordan did much to increase the status of the game; television ratings increased only during his time in the league.The popularity of the NBA in the U.S. declined after his last title.As late as 2022, NBA Finals television ratings had not returned to the level reached during his last championship-winning season.In August 2009, the Naismith Memorial Basketball Hall of Fame in Springfield, Massachusetts, opened a Michael Jordan exhibit that contained items from his college and NBA careers as well as from the 1992 \"Dream Team\"; the exhibit also has a batting baseball glove to signify Jordan's short career in the Minor League Baseball.\n",
                        "Jordan finished among the top three in regular season MVP voting 10 times.He was named one of the 50 Greatest Players in NBA History in 1996, and selected to the NBA 75th Anniversary Team in 2021.Jordan is one of only seven players in history to win an NCAA championship, an NBA championship, and an Olympic gold medal (doing so twice with the 1984 and 1992 U.S. men's basketball teams).Since 1976, the year of the ABA–NBA merger, Jordan and Pippen are the only two players to win six NBA Finals playing for one team.In the All-Star Game fan ballot, Jordan received the most votes nine times, more than any other player.Many of Jordan's contemporaries have said that Jordan is the greatest basketball player of all time.In 1999, an ESPN survey of journalists, athletes and other sports figures ranked Jordan the greatest North American athlete of the 20th century, above Babe Ruth and Muhammad Ali.Jordan placed second to Ruth in the Associated Press' December 1999 list of 20th century athletes.In addition, the Associated Press voted him the greatest basketball player of the 20th century.Jordan has also appeared on the front cover of Sports Illustrated a record 50 times.\n",
                        "James Jr. became command sergeant major of the 35th Signal Brigade of the U.S. Army's XVIII Airborne Corps and retired in 2006.In 1968, Jordan moved with his family to Wilmington, North Carolina.He attended Emsley A. Laney High School in Wilmington, where he highlighted his athletic career by playing basketball, baseball, and football.He tried out for the basketball varsity team during his sophomore year, but at a height of 5 feet 11 inches (1.80 m), he was deemed too short to play at that level.His taller friend Harvest Leroy Smith was the only sophomore to make the team.Motivated to prove his worth, Jordan became the star of Laney's junior varsity team and tallied some 40-point games.The following summer, he grew four inches (10 cm) and trained rigorously.Upon earning a spot on the varsity roster, he averaged more than 25 points per game (ppg) over his final two seasons of high school play.\n",
                        "23 retired by the Miami Heat\n",
                        "NBA MVP trophy renamed in Jordan's honor (\"Michael Jordan Trophy\") in 2022USA BasketballTwo-time Olympic gold medal winner – 1984, 1992\n",
                        "Tournament of the Americas gold medal winner – 1992\n",
                        "Pan American Games gold medal winner – 1983\n",
                        "Two-time USA Basketball Male Athlete of the Year – 1983, 1984NCAANCAA national championship – 1981–82\n",
                        "ACC Rookie of the Year – 1981–82\n",
                        "Two-time Consensus NCAA All-American First Team – 1982–83, 1983–84\n",
                        "ACC Men's Basketball Player of the Year – 1983–84\n",
                        "ACC Athlete of the Year – 1984\n",
                        "USBWA College Player of the Year – 1983–84\n",
                        "Naismith College Player of the Year – 1983–84\n",
                        "Adolph Rupp Trophy – 1983–84\n",
                        "John R. Wooden Award – 1983–84\n",
                        "Two-time Sporting News National Player of  the Year (1983, 1984)\n",
                        "No.\n",
                        "He spread misinformation about the virus, including promoting a widely discredited paper on the benefits of chloroquine and claiming that COVID-19 death statistics were inflated.In March 2020, Musk stated, \"The coronavirus panic is dumb.\"In an email to Tesla employees, Musk referred to COVID-19 as a \"specific form of the common cold\" and predicted that confirmed COVID-19 cases would not exceed 0.1% of the U.S. population.On March 19, 2020, Musk predicted that there would be \"probably close to zero new cases in [the U.S.] by end of April\".Politico labeled this statement one of \"the most audacious, confident, and spectacularly incorrect prognostications [of 2020]\".Musk also claimed falsely that children \"are essentially immune\" to COVID-19.Musk condemned COVID-19 lockdowns and initially refused to close the Tesla Fremont Factory in March 2020, defying the local shelter-in-place order.\n",
                        "Under Musk, Tesla has also constructed multiple lithium-ion battery and electric vehicle factories, named Gigafactories.Since its initial public offering in 2010, Tesla stock has risen significantly; it became the most valuable carmaker in summer 2020, and it entered the S&P 500 later that year.In October 2021, it reached a market capitalization of $1 trillion, the sixth company in U.S. history to do so.In November 2021, Musk proposed, on Twitter, to sell 10% of his Tesla stock, since \"much is made lately of unrealized gains being a means of tax avoidance\".After more than 3.5 million Twitter accounts supported the sale, Musk sold $6.9 billion of Tesla stock within a week, and a total of $16.4 billion by year end, reaching the 10% target.In February 2022, The Wall Street Journal reported that both Elon and Kimbal Musk were under investigation by the SEC for possible insider trading related to the sale.In 2022, Musk unveiled a robot developed by Tesla, Optimus.\n",
                        "During his rookie 1984–85 season with the Bulls, Jordan averaged 28.2 ppg on 51.5% shooting, and helped make a team that had won 35% of games in the previous three seasons playoff contenders.He quickly became a fan favorite even in opposing arenas.Roy S. Johnson of The New York Times described him as \"the phenomenal rookie of the Bulls\" in November, and Jordan appeared on the cover of Sports Illustrated with the heading \"A Star Is Born\" in December.The fans also voted in Jordan as an All-Star starter during his rookie season.Controversy arose before the 1985 NBA All-Star Game when word surfaced that several veteran players, led by Isiah Thomas, were upset by the amount of attention Jordan was receiving.This led to a so-called \"freeze-out\" on Jordan, where players refused to pass the ball to him throughout the game.The controversy left Jordan relatively unaffected when he returned to regular season play, and he would go on to be voted the NBA Rookie of the Year.\n",
                        "The acquisition was officially completed on October 27.Immediately after the acquisition, Musk fired several top Twitter executives including CEO Parag Agrawal; Musk became the CEO instead.He instituted a $7.99 monthly subscription for a \"blue check\", and laid off a significant portion of the company's staff.Musk lessened content moderation, and in December, Musk released internal documents relating to Twitter's moderation of Hunter Biden's laptop controversy in the leadup to the 2020 presidential election.The Southern Poverty Law Center noted that Twitter has verified numerous extremists, and a study of millions of tweets following the acquisition indicated that hate speech on the platform has become \"more visible\" under Musk's leadership.Within the first weeks of ownership, Musk made a series of decisions and changes that he quickly reversed, including the paid blue checkmark, creating an \"official\" label and forbidding linking to one's profiles on other social media platforms.Under Musk's management, Twitter experienced several large scale outages.In April 2022, The Washington Post reported that Musk privately claimed that supposed censorship on the platform, including the banning of accounts such as The Babylon Bee, had prompted him to begin the acquisition.\n",
                        "Musk also promoted a baseless theory relating to the attack of Speaker Nancy Pelosi's husband, but Musk deleted his tweet.Musk has praised China and has been described as having a close relationship with the Chinese government, allowing access to its markets for Tesla.After Gigafactory Shanghai produced its first batch of vehicles, Musk thanked the Chinese government and Chinese people while criticizing the United States and its people.: 207–208  In 2022, Musk wrote an article for China Cyberspace, the official publication of Cyberspace Administration of China, which enforces Internet censorship in China.His writing the article was described as conflicting with his advocacy for free speech.Musk later advocated for Taiwan to become a \"special administrative zone\" of China which drew cross-party criticism from Taiwanese lawmakers.In October 2022, Musk posted a Twitter poll and \"peace plan\" to resolve the Russian invasion of Ukraine.It was reported that Musk allegedly spoke with Russian President Vladimir Putin prior to the proposal, which Musk denied.\n",
                        "\n",
                        "\n",
                        "=== COVID-19 ===\n",
                        "Musk was criticized for his public comments and conduct related to the COVID-19 pandemic.\n",
                        "Jordan has had a long relationship with Gatorade, appearing in over 20 commercials for the company since 1991, including the \"Be Like Mike\" commercials in which a song was sung by children wishing to be like Jordan.Nike created a signature shoe for Jordan, called the Air Jordan, in 1984.One of Jordan's more popular commercials for the shoe involved Spike Lee playing the part of Mars Blackmon.In the commercials, Lee, as Blackmon, attempted to find the source of Jordan's abilities and became convinced that \"it's gotta be the shoes\".The hype and demand for the shoes even brought on a spate of \"shoe-jackings\", in which people were robbed of their sneakers at gunpoint.Subsequently, Nike spun off the Jordan line into its own division named the \"Jordan Brand\".The company features a list of athletes and celebrities as endorsers.The brand has also sponsored college sports programs such as those of North Carolina, UCLA, California, Oklahoma, Florida, Georgetown, and Marquette.Jordan also has been associated with the Looney Tunes cartoon characters.A Nike commercial shown during 1992's Super Bowl XXVI featured Jordan and Bugs Bunny playing basketball.\n",
                        "Accordingly, Musk has stated that artificial intelligence poses the greatest existential threat to humanity.He has warned of a \"Terminator-like\" AI apocalypse and suggested that the government should regulate its safe development.In 2015, Musk was a cosignatory, along with Stephen Hawking and hundreds of others, of the Open Letter on Artificial Intelligence, which called for the ban of autonomous weapons.Musk's AI stances have been called alarmist and sensationalist by critics such as computer scientist Yann LeCun and Meta CEO Mark Zuckerberg, and led the think tank Information Technology and Innovation Foundation to award Musk its Annual Luddite Award in 2016.Musk has described climate change as the greatest threat to humanity after AI, and has advocated for a carbon tax.Musk was a critic of President Donald Trump's stance on climate change, and resigned from two presidential business advisory councils following Trump's 2017 decision to withdraw the United States from the Paris Agreement.Musk has long promoted the colonization of Mars and argues that humanity should become a \"multiplanetary species\".He has suggested the use of nuclear weapons to terraform Mars.\n",
                        "In 2022, he acquired Twitter for $44 billion and subsequently merged the company into newly created X Corp. and rebranded the service as X the following year.In March 2023, he founded xAI, an artificial-intelligence company.Musk has expressed views that have made him a polarizing figure.He has been criticized for making unscientific and misleading statements, including that of spreading COVID-19 misinformation, and promoting conspiracy theories.His Twitter ownership has been similarly controversial, including letting off a large number of employees, an increase in hate speech on the platform and features such as Twitter Blue and the implementation of limits on the amount of viewable Tweets per day being criticized.In 2018, the U.S. Securities and Exchange Commission (SEC) sued him for falsely tweeting that he had secured funding for a private takeover of Tesla.To settle the case, Musk stepped down as the chairman of Tesla and paid a $20 million fine.\n",
                        "\n",
                        "\n",
                        "== Early life ==\n",
                        "\n",
                        "\n",
                        "=== Childhood and family ===\n",
                        "\n",
                        "Elon Reeve Musk was born on June 28, 1971, in Pretoria, one of South Africa's capital cities.Musk has British and Pennsylvania Dutch ancestry.\n",
                        "Jordan abruptly retired from basketball before the 1993–94 NBA season to play Minor League Baseball but returned to the Bulls in March 1995 and led them to three more championships in 1996, 1997, and 1998, as well as a then-record 72 regular season wins in the 1995–96 NBA season.He retired for the second time in January 1999 but returned for two more NBA seasons from 2001 to 2003 as a member of the Washington Wizards.During the course of his professional career, he was also selected to play for the United States national team, winning four gold medals—at the 1983 Pan American Games, 1984 Summer Olympics, 1992 Tournament of the Americas and 1992 Summer Olympics—while also being undefeated.Jordan's individual accolades and accomplishments include six NBA Finals Most Valuable Player (MVP) awards, ten NBA scoring titles (both all-time records), five NBA MVP awards, ten All-NBA First Team designations, nine All-Defensive First Team honors, fourteen NBA All-Star Game selections, three NBA All-Star Game MVP awards, three NBA steals titles, and the 1988 NBA Defensive Player of the Year Award.\n",
                        "In May 2020, he reopened the Tesla factory, defying the local stay-at-home order, and warned workers that they would be unpaid, and their unemployment benefits might be jeopardized, if they did not report to work.In December 2022, Musk called for prosecution of former National Institute of Allergy and Infectious Diseases director Anthony Fauci.In March 2020, Musk promised that Tesla would make ventilators for COVID-19 patients if there were a shortage.After figures like New York City mayor Bill de Blasio responded to Musk's offer, Musk offered to donate ventilators which Tesla would build or buy from a third party.However, Musk ended up buying and donating BiPAP and CPAP machines, which are devices that support respirations of someone able to breathe on their own, rather than the much more expensive and sought-after mechanical ventilator machines that are able to breathe for a patient entirely.In September 2020, Musk stated that he would not get the COVID-19 vaccine, because he and his children were \"not at risk for COVID\".\n",
                        "Broadcaster Al Michaels said that he was able to read baseball box scores on a 27-inch (69 cm) television clearly from about 50 feet (15 m) away.During the 2001 NBA Finals, Phil Jackson compared Jordan's dominance to Shaquille O'Neal, stating: \"Michael would get fouled on every play and still have to play through it and just clear himself for shots instead and would rise to that occasion.\"\n",
                        "\n",
                        "\n",
                        "== Legacy ==\n",
                        "Jordan's talent was clear from his first NBA season; by November 1984, he was being compared to Julius Erving.Larry Bird said that rookie Jordan was the best player he ever saw, and that he was \"one of a kind\", and comparable to Wayne Gretzky as an athlete.In his first game in Madison Square Garden against the New York Knicks, Jordan received a near minute-long standing ovation.After establishing the single game playoff record of 63 points against the Boston Celtics on April 20, 1986, Bird described him as \"God disguised as Michael Jordan\".Jordan led the NBA in scoring in 10 seasons (NBA record) and tied Wilt Chamberlain's record of seven consecutive scoring titles.\n",
                        "=== Twitter ===\n",
                        "\n",
                        "Musk expressed interest in buying Twitter as early as 2017, and had previously questioned the platform's commitment to freedom of speech.In January 2022, Musk started purchasing Twitter shares, reaching a 9.2% stake by April, making him the largest shareholder.When this was publicly disclosed, Twitter shares experienced the largest intraday price surge since the company's 2013 IPO.On April 4, Musk agreed to a deal that would appoint him to Twitter's board of directors and prohibit him from acquiring more than 14.9% of the company.However, on April 13, Musk made a $43 billion offer to buy Twitter, launching a takeover bid to buy 100% of Twitter's stock at $54.20 per share.In response, Twitter's board adopted a \"poison pill\" shareholder rights plan to make it more expensive for any single investor to own more than 15% of the company without board approval.Nevertheless, by the end of the month Musk had successfully concluded his bid for approximately $44 billion.\n",
                        "In his 1998 autobiography For the Love of the Game, Jordan wrote that he was preparing for retirement as early as the summer of 1992.The added exhaustion due to the \"Dream Team\" run in the 1992 Summer Olympics solidified Jordan's feelings about the game and his ever-growing celebrity status.Jordan's announcement sent shock waves throughout the NBA and appeared on the front pages of newspapers around the world.Jordan further surprised the sports world by signing a Minor League Baseball contract with the Chicago White Sox on February 7, 1994.He reported to spring training in Sarasota, Florida, and was assigned to the team's minor league system on March 31, 1994.Jordan said that this decision was made to pursue the dream of his late father, who always envisioned his son as a Major League Baseball player.The White Sox were owned by Bulls owner Jerry Reinsdorf, who continued to honor Jordan's basketball contract during the years he played baseball.In 1994, Jordan played for the Birmingham Barons, a Double-A minor league affiliate of the Chicago White Sox, batting .202 with three home runs, 51 runs batted in, 30 stolen bases, 114 strikeouts, 51 bases on balls, and 11 errors.\n",
                        "As of 2019, he has raised more than $5 million for the Make-A-Wish Foundation.In 2023, Jordan donated $10 million to the organization for his 60th birthday.In 2015, Jordan donated a settlement of undisclosed size from a lawsuit against supermarkets that had used his name without permission to 23 different Chicago charities.In 2017, Jordan funded two Novant Health Michael Jordan Family Clinics in Charlotte, North Carolina, by giving $7 million, the biggest donation he had made at the time.In 2018, after Hurricane Florence damaged parts of North Carolina, including his former hometown of Wilmington, Jordan donated $2 million to relief efforts.He gave $1 million to aid the Bahamas' recovery following Hurricane Dorian in 2019.On June 5, 2020, in the wake of the protests following the murder of George Floyd, Jordan and his brand announced in a joint statement that they would be donating $100 million over the next 10 years to organizations dedicated to \"ensuring racial equality, social justice and greater access to education\".In February 2021, Jordan funded two Novant Health Michael Jordan Family Clinics in New Hanover County, North Carolina, by giving $10 million.\n",
                        "Jordan was undefeated in the four tournaments he played for the United States national team, winning all 30 games he took part in.\n",
                        "\n",
                        "\n",
                        "== Player profile ==\n",
                        "Jordan was a shooting guard who could also play as a small forward, the position he would primarily play during his second return to professional basketball with the Washington Wizards, and as a point guard.Jordan was known throughout his career as a strong clutch performer.With the Bulls, he decided 25 games with field goals or free throws in the last 30 seconds, including two NBA Finals games and five other playoff contests.His competitiveness was visible in his prolific trash talk and well-known work ethic.Jordan often used perceived slights to fuel his performances.Sportswriter Wright Thompson described him as \"a killer, in the Darwinian sense of the word, immediately sensing and attacking someone's weakest spot\".As the Bulls organization built the franchise around Jordan, management had to trade away players who were not \"tough enough\" to compete with him in practice.To help improve his defense, he spent extra hours studying film of opponents.\n",
                        "== National team career ==\n",
                        "Jordan made his debut for the U.S. national basketball team at the 1983 Pan American Games in Caracas, Venezuela.He led the team in scoring with 17.3 ppg as the U.S., coached by Jack Hartman, won the gold medal in the competition.A year later, he won another gold medal in the 1984 Summer Olympics.The 1984 U.S. team was coached by Bob Knight and featured players such as Patrick Ewing, Sam Perkins, Chris Mullin, Steve Alford, and Wayman Tisdale.Jordan led the team in scoring, averaging 17.1 ppg for the tournament.In 1992, Jordan was a member of the star-studded squad that was dubbed the \"Dream Team\", which included Larry Bird and Magic Johnson.The team went on to win two gold medals: the first one in the 1992 Tournament of the Americas, and the second one in the 1992 Summer Olympics.He was the only player to start all eight games in the Olympics, averaged 14.9 ppg, and finished second on the team in scoring.\n",
                        "In 2020, SpaceX launched its first crewed flight, the Demo-2, becoming the first private company to place astronauts into orbit and dock a crewed spacecraft with the ISS.\n",
                        "\n",
                        "\n",
                        "==== Starlink ====\n",
                        "\n",
                        "In 2015, SpaceX began development of the Starlink constellation of low-Earth-orbit satellites to provide satellite Internet access, with the first two prototype satellites launched in February 2018.A second set of test satellites, and the first large deployment of a piece of the constellation, occurred in May 2019, when the first 60 operational satellites were launched.The total cost of the decade-long project to design, build, and deploy the constellation is estimated by SpaceX to be about $10 billion.Some critics, including the International Astronomical Union, have alleged that Starlink blocks the view of the sky and poses a collision threat to spacecraft.During the Russian invasion of Ukraine, Musk sent Starlink terminals to Ukraine to provide Internet access and communication.However, Musk refused to block Russian state media on Starlink, declaring himself \"a free speech absolutist\".\n",
                        "During the season, Sam Vincent, Chicago's point guard, was having trouble running the offense, and Jordan expressed his frustration with head coach Doug Collins, who would put Jordan at point guard.In his time as a point guard, Jordan averaged 10 triple-doubles in eleven games, with 33.6 ppg, 11.4 rpg, 10.8 apg, 2.9 spg, and 0.8 bpg on 51% shooting.The Bulls finished with a 47–35 record, and advanced to the Eastern Conference Finals, defeating the Cavaliers and New York Knicks along the way.The Cavaliers series included a career highlight for Jordan when he hit \"The Shot\" over Craig Ehlo at the buzzer in the fifth and final game of the series.\n",
                        "On June 20, 2023, Musk met with Indian Prime Minister Narendra Modi in New York City, suggesting that he might be interested in investing in India \"as soon as humanly possible\".\n",
                        "\n",
                        "\n",
                        "==== SEC and shareholder lawsuits regarding tweets ====\n",
                        "In 2018, Musk was sued by the SEC for a tweet claiming that funding had been secured for potentially taking Tesla private.The lawsuit characterized the tweet as false, misleading, and damaging to investors, and sought to bar Musk from serving as CEO of publicly traded companies.Two days later, Musk settled with the SEC, without admitting or denying the SEC's allegations.As a result, Musk and Tesla were fined $20 million each, and Musk was forced to step down for three years as Tesla chairman but was able to remain as CEO.Musk has stated in interviews that he does not regret posting the tweet that triggered the SEC investigation.In April 2022, the shareholder who sued Musk over the tweet, along with several Tesla shareholders, said that a federal judge had ruled that the tweet was false, although the ruling in question has not been unsealed.\n",
                        "At age ten, he developed an interest in computing and video games, teaching himself how to program from the VIC-20 user manual.At age twelve, he sold his BASIC-based game Blastar to PC and Office Technology magazine for approximately $500.\n",
                        "\n",
                        "\n",
                        "=== Education ===\n",
                        "Musk attended Waterkloof House Preparatory School, Bryanston High School, and Pretoria Boys High School, from where he graduated.Musk applied for a Canadian passport through his Canadian-born mother, knowing that it would be easier to immigrate to the United States this way.While waiting for his application to be processed, he attended the University of Pretoria for five months.Musk arrived in Canada in June 1989 and lived with a second cousin in Saskatchewan for a year, working odd jobs at a farm and lumber mill.In 1990, he entered Queen's University in Kingston, Ontario.Two years later, he transferred to the University of Pennsylvania (UPenn), where he completed studies for a Bachelor of Arts degree in physics and a Bachelor of Science degree in economics from the Wharton School.Although Musk claims he earned the degrees in 1995, UPenn maintains it awarded them in 1997.\n",
                        "== Further reading ==\n",
                        "Leahy, Michael (2004). When Nothing Else Matters: Michael Jordan's Last Comeback. Simon & Schuster. ISBN 978-0-7432-7648-1.\n",
                        "McGovern, Mike (2005). Michael Jordan: Basketball Player. Ferguson. ISBN 978-0-8160-5876-1.\n",
                        "\n",
                        "\n",
                        "== External links ==\n",
                        "\n",
                        "Career statistics and player information from NBA.com and Basketball-Reference.com\n",
                        "Michael Jordan at the Naismith Memorial Basketball Hall of Fame\n",
                        "Michael Jordan at Curlie\n",
                        "Career statistics and player information from Baseball Reference (Minors)\n",
                        "Michael Jordan Career Retrospective on YouTube\n",
                        "Michael Jordan at IMDb\n",
                        "\"Jordan archives\". Chicago Tribune. Archived from the original on June 5, 1997. Retrieved April 29, 2020.\n",
                        "He was also a fixture of the NBA All-Defensive First Team, making the roster nine times (NBA record shared with Gary Payton, Kevin Garnett, and Kobe Bryant).Jordan also holds the top career regular season and playoff scoring averages of 30.1 and 33.4 ppg, respectively.By 1998, the season of his Finals-winning shot against the Jazz, he was well known throughout the league as a clutch performer.In the regular season, Jordan was the Bulls' primary threat in the final seconds of a close game and in the playoffs; he would always ask for the ball at crunch time.Jordan's total of 5,987 points in the playoffs is the second-highest among NBA career playoff scoring leaders.He scored 32,292 points in the regular season, placing him fifth on the NBA all-time scoring list behind LeBron James, Kareem Abdul-Jabbar, Karl Malone, and Bryant.With five regular season MVPs (tied for second place with Bill Russell—only Abdul-Jabbar has won more, with six), six Finals MVPs (NBA record), and three NBA All-Star Game MVPs, Jordan is the most decorated player in NBA history.\n",
                        "His strikeout total led the team and his games played tied for the team lead.His 30 stolen bases were second on the team only to Doug Brady.He also appeared for the Scottsdale Scorpions in the 1994 Arizona Fall League, batting .252 against the top prospects in baseball.On November 1, 1994, his No.23 was retired by the Bulls in a ceremony that included the erection of a permanent sculpture known as The Spirit outside the new United Center.\n",
                        "\n",
                        "\n",
                        "==== \"I'm back\": Return to the NBA (1995) ====\n",
                        "The Bulls went 55–27 in 1993–94 without Jordan in the lineup and lost to the New York Knicks in the second round of the playoffs.The 1994–95 Bulls were a shell of the championship team of just two years earlier.Struggling at mid-season to ensure a spot in the playoffs, Chicago was 31–31 at one point in mid-March; the team received help when Jordan decided to return to the Bulls.In March 1995, Jordan decided to quit baseball because he feared he might become a replacement player during the Major League Baseball strike.\n",
                        "Though the rocket failed to reach Earth orbit, it was awarded a Commercial Orbital Transportation Services program contract from NASA Administrator (and former SpaceX consultant) Mike Griffin later that year.After two more failed attempts that nearly caused Musk and his companies to go bankrupt, SpaceX succeeded in launching the Falcon 1 into orbit in 2008.Later that year, SpaceX received a $1.6 billion Commercial Resupply Services contract from NASA for 12 flights of its Falcon 9 rocket and Dragon spacecraft to the International Space Station, replacing the Space Shuttle after its 2011 retirement.In 2012, the Dragon vehicle docked with the ISS, a first for a commercial spacecraft.Working towards its goal of reusable rockets, in 2015 SpaceX successfully landed the first stage of a Falcon 9 on an inland platform.Later landings were achieved on autonomous spaceport drone ships, an ocean-based recovery platform.In 2018, SpaceX launched the Falcon Heavy; the inaugural mission carried Musk's personal Tesla Roadster as a dummy payload.Since 2019, SpaceX has been developing Starship, a fully-reusable, super-heavy-lift launch vehicle intended to replace the Falcon 9 and the Falcon Heavy.\n",
                        "At the 2003 All-Star Game, Jordan was offered a starting spot from Tracy McGrady and Allen Iverson but refused both; in the end, he accepted the spot of Vince Carter.Jordan played in his final NBA game on April 16, 2003, in Philadelphia.After scoring 13 points in the game, Jordan went to the bench with 4 minutes and 13 seconds remaining in the third quarter and his team trailing the Philadelphia 76ers 75–56.Just after the start of the fourth quarter, the First Union Center crowd began chanting \"We want Mike!\"After much encouragement from coach Doug Collins, Jordan finally rose from the bench and re-entered the game, replacing Larry Hughes with 2:35 remaining.At 1:45, Jordan was intentionally fouled by the 76ers' Eric Snow, and stepped to the line to make both free throws.After the second foul shot, the 76ers in-bounded the ball to rookie John Salmons, who in turn was intentionally fouled by Bobby Simmons one second later, stopping time so that Jordan could return to the bench.Jordan received a three-minute standing ovation from his teammates, his opponents, the officials, and the crowd of 21,257 fans.\n",
                        "==== SolarCity and Tesla Energy ====\n",
                        "\n",
                        "Musk provided the initial concept and financial capital for SolarCity, which his cousins Lyndon and Peter Rive founded in 2006. By 2013, SolarCity was the second largest provider of solar power systems in the United States. In 2014, Musk promoted the idea of SolarCity building an advanced production facility in Buffalo, New York, triple the size of the largest solar plant in the United States. Construction of the factory started in 2014 and was completed in 2017. It operated as a joint venture with Panasonic until early 2020.Tesla acquired SolarCity for over $2 billion in 2016 and merged it with its battery unit to create Tesla Energy. The deal's announcement resulted in a more than 10% drop in Tesla's stock price. At the time, SolarCity was facing liquidity issues. Multiple shareholder groups filed a lawsuit against Musk and Tesla's directors, claiming that the purchase of SolarCity was done solely to benefit Musk and came at the expense of Tesla and its shareholders. Tesla directors settled the lawsuit in January 2020, leaving Musk the sole remaining defendant. Two years later, the court ruled in Musk's favor.\n",
                        "In December 2022, the NBA unveiled a new MVP trophy, named in Jordan's honor, to be awarded beginning with the 2022–23 season.The \"Michael Jordan Trophy\" will replace the original trophy, named in honor of former NBA commissioner Maurice Podoloff, with a new Podoloff Trophy set to be awarded to the team with the best overall regular season record.\n",
                        "\n",
                        "\n",
                        "== NBA career statistics ==\n",
                        "\n",
                        "\n",
                        "=== Regular season ===\n",
                        "\n",
                        "\n",
                        "=== Playoffs ===\n",
                        "\n",
                        "\n",
                        "== Awards and honors ==\n",
                        "\n",
                        "NBASix-time NBA champion – 1991, 1992, 1993, 1996, 1997, 1998\n",
                        "Six-time NBA Finals MVP – 1991, 1992, 1993, 1996, 1997, 1998\n",
                        "Five-time NBA MVP – 1988, 1991, 1992, 1996, 1998\n",
                        "NBA Defensive Player of the Year – 1987–88\n",
                        "NBA Rookie of the Year – 1984–85\n",
                        "10-time NBA scoring leader – 1987–1993, 1996–1998\n",
                        "Three-time NBA steals leader – 1988, 1990, 1993\n",
                        "14-time NBA All-Star – 1985–1993, 1996–1998, 2002,\n",
                        "Consequently, Tesla's 2021 announcement, against the backdrop of Musk's social media behavior, that it bought $1.5 billion worth of Bitcoin, raised questions.Tesla's announcement that it would accept Bitcoin for payment was criticized by environmentalists and investors, due to the environmental impact of cryptocurrency mining.A few months later, in response to the criticism, Musk announced on Twitter that Tesla would no longer accept payments in Bitcoin and would not engage in any Bitcoin transactions until the environmental issues are solved.Despite the Boring Company's involvement in building mass transit infrastructure, Musk has criticized public transport and promoted individualized transport (private vehicles).His comments have been called \"elitist\" and have sparked widespread criticism from both transportation and urban planning experts, who have pointed out that public transportation in dense urban areas is more economical, more energy efficient, and requires much less space than private cars.\n",
                        "Musk assumed leadership of the company as CEO and product architect in 2008.A 2009 lawsuit settlement with Eberhard designated Musk as a Tesla co-founder, along with Tarpenning and two others.As of 2019, Musk was the longest-tenured CEO of any automotive manufacturer globally.In 2021, Musk nominally changed his title to \"Technoking\" while retaining his position as CEO.Tesla began delivery of an electric sports car, the Roadster, in 2008.With sales of about 2,500 vehicles, it was the first serial production all-electric car to use lithium-ion battery cells.Tesla began delivery of its four-door Model S sedan in 2012.A cross-over, the Model X was launched in 2015.A mass-market sedan, the Model 3, was released in 2017.The Model 3 is the all-time bestselling plug-in electric car worldwide, and in June 2021 it became the first electric car to sell 1 million units globally.A fifth vehicle, the Model Y crossover, was launched in 2020.The Cybertruck, an all-electric pickup truck, was unveiled in 2019.\n",
                        "Perhaps the best-known moment of the series came in Game 2 when, attempting a dunk, Jordan avoided a potential Sam Perkins block by switching the ball from his right hand to his left in mid-air to lay the shot into the basket.In his first Finals appearance, Jordan had 31.2 ppg on 56% shooting from the field, 11.4 apg, 6.6 rpg, 2.8 spg, and 1.4 bpg.Jordan won his first NBA Finals MVP award, and he cried while holding the Finals trophy.Jordan and the Bulls continued their dominance in the 1991–92 season, establishing a 67–15 record, topping their franchise record from the 1990–91 campaign.Jordan won his second consecutive MVP award with averages of 30.1 ppg, 6.4 rbg, and 6.1 apg on 52% shooting.After winning a physical seven-game series over the New York Knicks in the second round of the playoffs and finishing off the Cleveland Cavaliers in the Conference Finals in six games, the Bulls met Clyde Drexler and the Portland Trail Blazers in the Finals.\n",
                        "On April 20 at the Boston Garden, in Game 2 of the First Round, a 135–131 double overtime loss to the eventual NBA Champion Boston Celtics, Jordan scored a playoff career-high 63 points, breaking Elgin Baylor’s single-game playoff scoring record.A Celtics team that is often considered one of the greatest in NBA history swept the series in three games.Jordan completely recovered in time for the 1986–87 season, and had one of the most prolific scoring seasons in NBA history; he became the only player other than Wilt Chamberlain to score 3,000 points in a season, averaging a league-high 37.1 ppg on 48.2% shooting.In addition, Jordan demonstrated his defensive prowess, as he became the first player in NBA history to record 200 steals and 100 blocked shots in a season.Despite Jordan's success, Magic Johnson won the NBA Most Valuable Player Award.The Bulls reached 40 wins, and advanced to the playoffs for the third consecutive year but were again swept by the Celtics.\n",
                        "The Wall Street Journal reported that, after Musk insisted on branding his vehicles as \"self-driving\", he faced criticism from his engineers for putting customer \"lives at risk\", with some employees resigning in consequence.\n",
                        "\n",
                        "\n",
                        "== Other activities ==\n",
                        "\n",
                        "\n",
                        "=== Musk Foundation ===\n",
                        "Musk is president of the Musk Foundation he founded in 2001, whose stated purpose is to provide solar-power energy systems in disaster areas; support research, development, and advocacy (for interests including human space exploration, pediatrics, renewable energy and \"safe artificial intelligence\"); and support science and engineering educational efforts.From 2002 to 2018, the foundation gave $25 million directly to non-profit organizations, nearly half of which went to Musk's OpenAI, which was a non-profit at the time.Since 2002, the foundation has made over 350 donations.Around half of them were made to scientific research or education nonprofits.Notable beneficiaries include the Wikimedia Foundation, his alma mater the University of Pennsylvania, and his brother Kimbal's non-profit Big Green.In 2012, Musk took the Giving Pledge, thereby committing to give the majority of his wealth to charitable causes either during his lifetime or in his will.\n",
                        "He envisioned establishing a direct democracy on Mars, with a system in which more votes would be required to create laws than remove them.Musk has also voiced concerns about human population decline, saying that \"Mars has zero human population.We need a lot of people to become a multiplanet civilization.\"Speaking at The Wall Street Journal's CEO Council session in 2021, Musk stated that a declining birth rate, and consequent population decline, is one of the biggest risks to human civilization.\n",
                        "\n",
                        "\n",
                        "=== Politics ===\n",
                        "\n",
                        "While often described as libertarian, Musk has called himself \"politically moderate\" and was a registered independent voter when he lived in California.The New York Times wrote that Musk \"expresses views that don't fit neatly into [the American] binary, left-right political framework\".Historically, Musk has donated to both Democrats and Republicans, many of whom are in states in which he has a vested interest.Beginning in the late 2010s, Musk's political contributions have shifted to almost entirely supporting Republicans.Musk voted for Hillary Clinton in the 2016 U.S. presidential election.In the 2020 Democratic Party presidential primaries, Musk endorsed candidate Andrew Yang and expressed support for his proposed universal basic income.\n",
                        "With 10 seconds remaining, Jordan started to dribble right, then crossed over to his left, possibly pushing off Russell, although the officials did not call a foul.With 5.2 seconds left, Jordan made the climactic shot of his Bulls career, a top-key jumper over a stumbling Russell to give Chicago an 87–86 lead.Afterwards, the Jazz' John Stockton narrowly missed a game-winning three-pointer, and the buzzer sounded as Jordan and the Bulls won their sixth NBA championship, achieving a second three-peat in the decade.Once again, Jordan was voted Finals MVP, having led all scorers by averaging 33.5 ppg, including 45 in the deciding Game 6.Jordan's six Finals MVPs is a record.The 1998 Finals holds the highest television rating of any Finals series in history, and Game 6 holds the highest television rating of any game in NBA history.\n",
                        "\n",
                        "\n",
                        "==== Second retirement (1999–2001) ====\n",
                        "With Phil Jackson's contract expiring, the pending departures of Scottie Pippen and Dennis Rodman looming, and being in the latter stages of an owner-induced lockout of NBA players, Jordan retired for the second time on January 13, 1999.\n",
                        "On January 19, 2000, Jordan returned to the NBA not as a player but as part owner and president of basketball operations for the Washington Wizards.Jordan's responsibilities with the Wizards were comprehensive, as he controlled all aspects of the Wizards' basketball operations, and had the final say in all personnel matters; opinions of Jordan as a basketball executive were mixed.He managed to purge the team of several highly paid, unpopular players (like forward Juwan Howard and point guard Rod Strickland) but used the first pick in the 2001 NBA draft to select high school student Kwame Brown, who did not live up to expectations and was traded away after four seasons.Despite his January 1999 claim that he was \"99.9% certain\" he would never play another NBA game, Jordan expressed interest in making another comeback in the summer of 2001, this time with his new team.Inspired by the NHL comeback of his friend Mario Lemieux the previous winter, Jordan spent much of the spring and summer of 2001 in training, holding several invitation-only camps for NBA players in Chicago.\n",
                        "In February 2023, the jury found Musk and Tesla not liable.In 2019, Musk stated in a tweet that Tesla would build half a million cars that year.The SEC reacted to Musk's tweet by filing in court, asking the court to hold him in contempt for violating the terms of a settlement agreement with such a tweet; the accusation was disputed by Musk.This was eventually settled by a joint agreement between Musk and the SEC clarifying the previous agreement details.The agreement included a list of topics that Musk would need preclearance before tweeting about.In 2020, a judge prevented a lawsuit from proceeding that claimed a tweet by Musk regarding Tesla stock price (\"too high imo\") violated the agreement.FOIA-released records showed that the SEC itself concluded Musk has subsequently violated the agreement twice by tweeting regarding \"Tesla's solar roof production volumes and its stock price\".\n",
                        "The Bulls won the Eastern Conference Championship for a third straight season, including surviving a seven-game series with the Indiana Pacers in the Eastern Conference Finals; it was the first time Jordan had played in a Game 7 since the 1992 Eastern Conference Semifinals with the New York Knicks.After winning, they moved on for a rematch with the Jazz in the Finals.The Bulls returned to the Delta Center for Game 6 on June 14, 1998, leading the series 3–2.Jordan executed a series of plays, considered to be one of the greatest clutch performances in NBA Finals history.With 41.9 seconds remaining and the Bulls trailing 86–83, Phil Jackson called a timeout.When play resumed, Jordan received the inbound pass, drove to the basket, and sank a shot over several Jazz defenders, cutting Utah's lead to 86–85.The Jazz brought the ball upcourt and passed the ball to Malone, who was set up in the low post and was being guarded by Rodman.Malone jostled with Rodman and caught the pass, but Jordan cut behind him and stole the ball out of his hands.Jordan then dribbled down the court and paused, eyeing his defender, Jazz guard Bryon Russell.\n",
                        "== Post-retirement ==\n",
                        "After his third retirement, Jordan assumed that he would be able to return to his front office position as Director of Basketball Operations with the Wizards. His previous tenure in the Wizards' front office had produced mixed results and may have also influenced the trade of Richard \"Rip\" Hamilton for Jerry Stackhouse, although Jordan was not technically Director of Basketball Operations in 2002. On May 7, 2003, Wizards owner Abe Pollin fired Jordan as the team's president of basketball operations. Jordan later stated that he felt betrayed, and that if he had known he would be fired upon retiring, he never would have come back to play for the Wizards.Jordan kept busy over the next few years. He stayed in shape, played golf in celebrity charity tournaments, and spent time with his family in Chicago. He also promoted his Jordan Brand clothing line and rode motorcycles. Since 2004, Jordan has owned Michael Jordan Motorsports, a professional closed-course motorcycle road racing team that competed with two Suzukis in the premier Superbike championship sanctioned by the American Motorcyclist Association (AMA) until the end of the 2013 season.\n",
                        "Notably, Tesla generates some of its revenue from its sales of carbon credits granted to the company, by both the European Union Emissions Trading System and the Chinese national carbon trading scheme.Musk, a longtime opponent of short-selling, has repeatedly criticized the practice and argued it should be illegal.Wired magazine speculated that Musk's opposition to short-selling stems from how short sellers have an incentive to find and promote unfavorable information about his companies.In early 2021, he encouraged the GameStop short squeeze.In December 2022, Musk sold $3.6 billion of his stock in Tesla, equal to 22 million shares in the company, despite pledging earlier in the year that he would not sell any additional shares.\n",
                        "\n",
                        "\n",
                        "=== Technology ===\n",
                        "Musk has promoted cryptocurrencies and supports them over traditional government-issued fiat currencies.Given the influence of Musk's tweets in moving cryptocurrency markets, his statements about cryptocurrencies have been viewed as market manipulation by some, such as economist Nouriel Roubini.Musk's social media praising of Bitcoin and Dogecoin was credited for increasing their prices.\n",
                        "On March 18, 1995, Jordan announced his return to the NBA through a two-word press release: \"I'm back.\"The next day, Jordan took to the court with the Bulls to face the Indiana Pacers in Indianapolis, scoring 19 points.The game had the highest Nielsen rating of any regular season NBA game since 1975.Although he could have worn his original number even though the Bulls retired it, Jordan wore No.45, his baseball number.Despite his eighteen-month hiatus from the NBA, Jordan played well, making a game-winning jump shot against Atlanta in his fourth game back.He scored 55 points in his next game, against the New York Knicks at Madison Square Garden on March 28, 1995.Boosted by Jordan's comeback, the Bulls went 13–4 to make the playoffs and advanced to the Eastern Conference Semifinals against the Orlando Magic.At the end of Game 1, Orlando's Nick Anderson stripped Jordan from behind, leading to the game-winning basket for the Magic; he later commented that Jordan \"didn't look like the old Michael Jordan\", and said that \"No.45 doesn't explode like No.\n",
                        "That team included Karl Malone, who had beaten Jordan for the NBA MVP award in a tight race (986–957).The series against the Jazz featured two of the more memorable clutch moments of Jordan's career.He won Game 1 for the Bulls with a buzzer-beating jump shot.In Game 5, with the series tied at 2, Jordan played despite being feverish and dehydrated from a stomach virus.In what is known as \"The Flu Game\", Jordan scored 38 points, including the game-deciding 3-pointer with 25 seconds remaining.The Bulls won 90–88 and went on to win the series in six games.For the fifth time in as many Finals appearances, Jordan received the Finals MVP award.During the 1997 NBA All-Star Game, Jordan posted the first triple-double in All-Star Game history in a victorious effort, but the MVP award went to Glen Rice.Jordan and the Bulls compiled a 62–20 record in the 1997–98 season.Jordan led the league with 28.7 ppg, securing his fifth regular season MVP award, plus honors for All-NBA First Team, First Defensive Team, and the All-Star Game MVP.\n",
                        "The team closed out the season with a 23-game losing streak; their .106 winning percentage was the worst in NBA history.Before the next season, Jordan said: \"I'm not real happy about the record book scenario last year.It's very, very frustrating.\"During the 2019 NBA offseason, Jordan sold a minority piece of the Hornets to Gabe Plotkin and Daniel Sundheim, retaining the majority of the team for himself, as well as the role of chairman.In 2023, Jordan finalized the sale of his majority stake of the team to Gabe Plotkin and Rick Schnall, ending his 13-year tenure as majority owner of the Hornets, although he is keeping a minority stake, The sale was officially completed in August 2023 for approximately $3 billion, more than 10 times the $275 million Jordan had paid for the team.\n",
                        "During the demonstration, Musk revealed a pig with a Neuralink implant that tracked neural activity related to smell.In 2022, Neuralink announced that clinical trials would begin by the end of the year.Neuralink has conducted further animal testing on macaque monkeys at the University of California, Davis' Primate Research Center.In 2021, the company released a video in which a Macaque played the video game Pong via a Neuralink implant.The company's animal trials—which have caused the deaths of some monkeys—have led to claims of animal cruelty.The Physicians Committee for Responsible Medicine has alleged that Neuralink's animal trials have violated the Animal Welfare Act.Employees have complained that pressure from Musk to accelerate development has led to botched experiments and unnecessary animal deaths.In 2022, a federal probe was launched into possible animal welfare violations by Neuralink.\n",
                        "=== Neuralink ===\n",
                        "\n",
                        "In 2016, Musk co-founded Neuralink, a neurotechnology startup company, with an investment of $100 million.Neuralink aims to integrate the human brain with artificial intelligence (AI) by creating devices that are embedded in the brain to facilitate its merging with machines.Such technology could enhance memory or allow the devices to communicate with software.The company also hopes to develop devices with which to treat neurological conditions such as Alzheimer's disease, dementia, and spinal cord injuries.In 2019, Musk announced work on a device akin to a sewing machine that could embed threads into a human brain.He is listed as the sole author of an October 2019 paper that details some of Neuralink's research, although Musk's being listed as such rankled the Neuralink team's researchers.At a 2020 live demonstration, Musk described one of their early devices as \"a Fitbit in your skull\" that could soon cure paralysis, deafness, blindness, and other disabilities.Many neuroscientists and publications criticized these claims, with MIT Technology Review describing them as \"highly speculative\" and \"neuroscience theater\".\n",
                        "Despite media criticism by some as a selfish player early in his career, Jordan was willing to defer to this teammates, with a career average of 5.3 apg and a season-high of 8.0 apg.For a guard, Jordan was also a good rebounder, finishing with 6.2 rpg.Defensively, he averaged 2.3 spg and 0.8 bpg.Three-point field goal was not Jordan's strength, especially in his early years.Later on in Jordan's career, he improved his three-point shooting, and finished his career with a respectable 32% success rate.His three-point field-goal percentages ranged from 35% to 43% in seasons in which he attempted at least 230 three-pointers between 1989–90 and 1996–97.\n",
                        "He has endowed prizes at the X Prize Foundation, including $100 million to reward improved carbon capture technology.Vox said \"the Musk Foundation is almost entertaining in its simplicity and yet is strikingly opaque\", noting that its website was only 33 words in plain-text.The foundation has been criticized for the relatively small amount of wealth donated.In 2020, Forbes gave Musk a philanthropy score of 1, because he had given away less than 1% of his net worth.In November 2021, Musk donated $5.7 billion of Tesla's shares to charity, according to regulatory filings.However, Bloomberg News noted that all of it went to his own foundation, bringing Musk Foundation's assets up to $9.4 billion at the end of 2021.The foundation disbursed $160 million to non-profits that year.\n",
                        "\n",
                        "\n",
                        "=== Hyperloop ===\n",
                        "\n",
                        "In 2013, Musk announced plans for a version of a vactrain—a vacuum tube train—and assigned a dozen engineers from SpaceX and Tesla to establish the conceptual foundations and create initial designs.Later that year, Musk unveiled the concept, which he dubbed the hyperloop.\n",
                        "==== First three-peat (1991–1993) ====\n",
                        "In the 1990–91 season, Jordan won his second MVP award after averaging 31.5 ppg on 53.9% shooting, 6.0 rpg, and 5.5 apg for the regular season.The Bulls finished in first place in their division for the first time in sixteen years and set a franchise record with 61 wins in the regular season.With Scottie Pippen developing into an All-Star, the Bulls had elevated their play.The Bulls defeated the New York Knicks and the Philadelphia 76ers in the opening two rounds of the playoffs.They advanced to the Eastern Conference Finals where their rival, the Detroit Pistons, awaited them; this time, the Bulls beat the Pistons in a four-game sweep.The Bulls advanced to the Finals for the first time in franchise history to face the Los Angeles Lakers, who had Magic Johnson and James Worthy, two formidable opponents.The Bulls won the series four games to one, and compiled a 15–2 playoff record along the way.\n",
                        "Jordan led the league in scoring with 30.4 ppg, and he won the league's regular season and All-Star Game MVP awards.In the playoffs, the Bulls lost only three games in four series (Miami Heat 3–0, New York Knicks 4–1, and Orlando Magic 4–0), as they defeated the Seattle SuperSonics 4–2 in the NBA Finals to win their fourth championship.Jordan was named Finals MVP for a record fourth time, surpassing Magic Johnson's three Finals MVP awards; he also achieved only the second sweep of the MVP awards in the All-Star Game, regular season, and NBA Finals after Willis Reed in the 1969–70 season.Upon winning the championship, his first since his father's murder, Jordan reacted emotionally, clutching the game ball and crying on the locker room floor.In the 1996–97 season, the Bulls stood at a 69–11 record but ended the season by losing their final two games to finish the year 69–13, missing out on a second consecutive 70-win season.The Bulls again advanced to the Finals, where they faced the Utah Jazz.\n",
                        "On September 27, 2021, after Tesla stock surged, Forbes announced that Musk had a net worth of over $200 billion, and was the richest person in the world.In November 2021, Musk became the first person to have a net worth of more than $300 billion.On December 30, 2022, it was reported that Musk had lost $200 billion from his net worth due to declining stock values in Tesla, becoming the first person in history to lose such a large sum of money.In January 2023, Musk was recognized by Guinness World Records for experiencing the \"largest loss of personal fortune in history\" with regards to his financial losses since November 2021, which Guinness quoted a Forbes estimate of $182 billion.Musk's personal wealth is managed by his family office called Excession LLC, which was formed in 2016 and run by Jared Birchall.\n",
                        "\n",
                        "\n",
                        "=== Sources of wealth ===\n",
                        "Around 75% of Musk's wealth derived from Tesla stock in November 2020, a proportion that fell to about 37% as of December 2022, after selling nearly $40 billion in company shares since late 2021.\n",
                        "== College career ==\n",
                        "\n",
                        "As a freshman in coach Dean Smith's team-oriented system, Jordan was named ACC Freshman of the Year after he averaged 13.4 ppg on 53.4% shooting (field goal percentage). He made the game-winning jump shot in the 1982 NCAA Championship game against Georgetown, which was led by future NBA rival Patrick Ewing. Jordan later described this shot as the major turning point in his basketball career. During his three seasons with the Tar Heels, he averaged 17.7 ppg on 54.0% shooting and added 5.0 rpg and 1.8 apg.Jordan was selected by consensus to the NCAA All-American First Team in both his sophomore (1983) and junior (1984) seasons. After winning the Naismith and the Wooden College Player of the Year awards in 1984, Jordan left North Carolina one year before his scheduled graduation to enter the 1984 NBA draft. Jordan returned to North Carolina to complete his degree in 1986, when he graduated with a Bachelor of Arts degree in geography. In 2002, Jordan was named to the ACC 50th Anniversary men's basketball team honoring the 50 greatest players in ACC history.\n",
                        "\n",
                        "\n",
                        "== Professional career ==\n",
                        "=== 23XI Racing ===\n",
                        "On September 21, 2020, Jordan and NASCAR driver Denny Hamlin announced they would be fielding a NASCAR Cup Series team with Bubba Wallace driving, beginning competition in the 2021 season. On October 22, the team's name was confirmed to be 23XI Racing (pronounced twenty-three eleven) and the team's entry would bear No. 23. After the team's inaugural season, it added a second car with No. 45, driven by Kurt Busch in 2022 and Tyler Reddick in 2023. Ty Gibbs, John Hunter Nemechek, and Daniel Hemric also drove for 23XI as substitute drivers during the 2022 season. The team fielded a third car, No. 67, driven by Travis Pastrana in the 2023 Daytona 500. 23XI Racing has won four races, two by Wallace, one by Busch, and one by Reddick.\n",
                        "\n",
                        "\n",
                        "== Personal life ==\n",
                        "Jordan's nephew through his brother Larry, Justin Jordan, played NCAA Division I basketball for the UNC Greensboro Spartans and is a scout for the Charlotte Hornets.Jordan married Juanita Vanoy at A Little White Wedding Chapel in Las Vegas on September 2, 1989.\n",
                        "However, Musk dropped out after two days and, with his brother Kimbal, co-founded online city guide software company Zip2.The startup was acquired by Compaq for $307 million in 1999, and with $12 million of the money he made, that same year Musk co-founded X.com, a direct bank.X.com merged with Confinity in 2000 to form PayPal.In 2002, eBay acquired PayPal for $1.5 billion, and that same year, with $100 million of the money he made, Musk founded SpaceX, a spaceflight services company.In 2004, he became an early investor in electric vehicle manufacturer Tesla Motors, Inc. (now Tesla, Inc.).He became its chairman and product architect, assuming the position of CEO in 2008.In 2006, Musk helped create SolarCity, a solar energy company that was acquired by Tesla in 2016 and became Tesla Energy.In 2013, he proposed a hyperloop high-speed vactrain transportation system.In 2015, he co-founded OpenAI, a nonprofit artificial intelligence research company.The following year, Musk co-founded Neuralink—a neurotechnology company developing brain–computer interfaces—and the Boring Company, a tunnel construction company.\n",
                        "On March 17, the NBA Board of Governors unanimously approved Jordan's purchase, making him the first former player to become the majority owner of an NBA team.It also made him the league's only African-American majority owner.In 2023, Johnson said he regretted selling the Charlotte Hornets to Jordan.During the 2011 NBA lockout, The New York Times wrote that Jordan led a group of 10 to 14 hardline owners who wanted to cap the players' share of basketball-related income at 50 percent and as low as 47.Journalists observed that, during the labor dispute in 1998, Jordan had told Washington Wizards then-owner Abe Pollin: \"If you can't make a profit, you should sell your team.\"Jason Whitlock of FoxSports.com called Jordan \"a hypocrite sellout who can easily betray the very people who made him a billionaire global icon\" for wanting \"current players to pay for his incompetence\".He cited Jordan's executive decisions to draft disappointing players Kwame Brown and Adam Morrison.During the 2011–12 NBA season that was shortened to 66 games by the lockout, the Bobcats posted a 7–59 record.\n",
                        "The tunnel project to Hawthorne was discontinued in 2022 and is cited to be converted into parking spots for SpaceX workers.Biographer Ashlee Vance has noted that Musk hoped Hyperloop would \"make the public and legislators rethink the high-speed train\" proposal current in California at the time and consider more \"creative\" ideas.\n",
                        "23 used to\".Jordan responded by scoring 38 points in the next game, which Chicago won.Before the game, Jordan decided that he would immediately resume wearing his former No.23.The Bulls were fined $25,000 for failing to report the impromptu number change to the NBA.Jordan was fined an additional $5,000 for opting to wear white sneakers when the rest of the Bulls wore black.He averaged 31 ppg in the playoffs, but Orlando won the series in six games.\n",
                        "\n",
                        "\n",
                        "==== Second three-peat (1996–1998) ====\n",
                        "Jordan was freshly motivated by the playoff defeat, and he trained aggressively for the 1995–96 season.The Bulls were strengthened by the addition of rebound specialist Dennis Rodman, and the team dominated the league, starting the season at 41–3.The Bulls eventually finished with the best regular season record in NBA history, 72–10, a mark broken two decades later by the 2015–16 Golden State Warriors.\n",
                        "Even though Musk founded the company, investors regarded him as inexperienced and replaced him with Intuit CEO Bill Harris by the end of the year.In 2000, X.com merged with online bank Confinity to avoid competition, as the latter's money-transfer service PayPal was more popular than X.com's service.Musk then returned as CEO of the merged company.His preference for Microsoft over Unix-based software caused a rift among the company's employees, and eventually led Confinity co-founder Peter Thiel to resign.With the company suffering from compounding technological issues and the lack of a cohesive business model, the board ousted Musk and replaced him with Thiel in September 2000.Under Thiel, the company focused on the money-transfer service and was renamed PayPal in 2001.In 2002, PayPal was acquired by eBay for $1.5 billion in stock, of which Musk—PayPal's largest shareholder with 11.72% of shares—received $175.8 million.In 2017, more than 15 years later, Musk purchased the X.com domain from PayPal for its \"sentimental value\".In 2022, Musk discussed a goal of creating \"X, the everything app\".\n",
                        "In addition, Jordan hired his old Chicago Bulls head coach, Doug Collins, as Washington's coach for the upcoming season, a decision that many saw as foreshadowing another Jordan return.\n",
                        "\n",
                        "\n",
                        "=== Washington Wizards (2001–2003) ===\n",
                        "On September 25, 2001, Jordan announced his return to the NBA to play for the Washington Wizards, indicating his intention to donate his salary as a player to a relief effort for the victims of the September 11 attacks.In an injury-plagued 2001–02 season, Jordan led the team in scoring (22.9 ppg), assists (5.2 apg), and steals (1.4 spg), and was an MVP candidate, as he led the Wizards to a winning record and playoff contention; he would eventually finish 13th in the MVP ballot.After suffering torn cartilage in his right knee, and subsequent knee soreness, the Wizards missed the playoffs, and Jordan's season ended after only 60 games, the fewest he had played in a regular season since playing 17 games after returning from his first retirement during the 1994–95 season.\n",
                        "=== SpaceX ===\n",
                        "\n",
                        "In early 2001, Musk became involved with the nonprofit Mars Society and discussed funding plans to place a growth-chamber for plants on Mars.In October of the same year, he traveled to Moscow with Jim Cantrell and Adeo Ressi to buy refurbished intercontinental ballistic missiles (ICBMs) that could send the greenhouse payloads into space.He met with the companies NPO Lavochkin and Kosmotras; however, Musk was seen as a novice and the group returned to the United States empty-handed.In February 2002, the group returned to Russia with Mike Griffin (president of In-Q-Tel) to look for three ICBMs.They had another meeting with Kosmotras and were offered one rocket for $8 million, which Musk rejected.He instead decided to start a company that could build affordable rockets.With $100 million of his own money, Musk founded SpaceX in May 2002 and became the company's CEO and Chief Engineer.SpaceX attempted its first launch of the Falcon 1 rocket in 2006.\n",
                        "Jordan started 53 of his 60 games for the season, averaging 24.3 ppg, 5.4 apg, and 6.0 rpg, and shooting 41.9% from the field in his 53 starts.His last seven appearances were in a reserve role, in which he averaged just over 20 minutes per game.The Wizards finished the season with a 37–45 record, an 18-game improvement.Playing in his 14th and final NBA All-Star Game in 2003, Jordan passed Kareem Abdul-Jabbar as the all-time leading scorer in All-Star Game history, a record since broken by Kobe Bryant and LeBron James.That year, Jordan was the only Washington player to play in all 82 games, starting in 67 of them, and coming from off the bench in 15.He averaged 20.0 ppg, 6.1 rpg, 3.8 assists, and 1.5 spg per game.He also shot 45% from the field, and 82% from the free-throw line.Even though he turned 40 during the season, he scored 20 or more points 42 times, 30 or more points nine times, and 40 or more points three times.\n",
                        "In the Eastern Conference Finals, the Pistons again defeated the Bulls, this time in six games, by utilizing their \"Jordan Rules\" method of guarding Jordan, which consisted of double and triple teaming him every time he touched the ball.The Bulls entered the 1989–90 season as a team on the rise, with their core group of Jordan and young improving players like Scottie Pippen and Horace Grant, and under the guidance of new coach Phil Jackson.On March 28, 1990, Jordan scored a career-high 69 points in a 117–113 road win over the Cavaliers.He averaged a league-leading 33.6 ppg on 52.6% shooting, to go with 6.9 rpg and 6.3 apg, in leading the Bulls to a 55–27 record.They again advanced to the Eastern Conference Finals after beating the Bucks and Philadelphia 76ers; despite pushing the series to seven games, the Bulls lost to the Pistons for the third consecutive season.\n",
                        "Jordan shot 37%, 35%, 42%, and 37% in all the seasons he shot over 200 three-pointers, and also shot 38.5%, 38.6%, 38.9%, 40.3%, 19.4%, and 30.2% in the playoffs during his championship runs, improving his shooting even after the three-point line reverted to the original line.In 1988, Jordan was honored with the NBA Defensive Player of the Year and the Most Valuable Player awards, becoming the first NBA player to win both awards in a career let alone season.In addition, he set both seasonal and career records for blocked shots by a guard, and combined this with his ball-thieving ability to become a standout defensive player.He ranks fourth in NBA history in total steals with 2,514, trailing John Stockton, Jason Kidd and Chris Paul.Jerry West often stated that he was more impressed with Jordan's defensive contributions than his offensive ones.Doc Rivers declared Jordan \"the best superstar defender in the history of the game\".Jordan was known to have strong eyesight.\n",
                        "== Wealth ==\n",
                        "\n",
                        "\n",
                        "=== Net worth ===\n",
                        "Musk made $175.8 million when PayPal was sold to eBay in 2002.He was first listed on the Forbes Billionaires List in 2012, with a net worth of $2 billion.At the start of 2020, Musk had a net worth of $27 billion.By the end of the year his net worth had increased by $150 billion, mostly driven by his ownership of around 20% of Tesla stock.During this period, Musk's net worth was often volatile.For example, it dropped $16.3 billion in September, the largest single-day plunge in Bloomberg Billionaires Index's history.In November of that year, Musk passed Facebook co-founder Mark Zuckerberg to become the third-richest person in the world; a week later he passed Microsoft co-founder Bill Gates to become the second-richest.In January 2021, Musk, with a net worth of $185 billion, surpassed Amazon founder Jeff Bezos to become the richest person in the world.Bezos reclaimed the top spot the following month.\n",
                        "=== xAI ===\n",
                        "On July 12, 2023, Elon Musk launched an artificial intelligence company called xAI, which aims to develop a generative AI program that competes with existing offerings like ChatGPT. The company has reportedly hired engineers from Google and OpenAI.\n",
                        "\n",
                        "\n",
                        "=== Leadership style ===\n",
                        "Musk is often described as a micromanager and has called himself a \"nano-manager\".The New York Times has characterized his approach as absolutist.Musk does not make formal business plans; instead, he says he prefers to approach engineering problems with an \"iterative design methodology\" and \"tolerance for failures\".He has forced employees to adopt the company's own jargon and launched ambitious, risky, and costly projects against his advisors' recommendations, such as removing front-facing radar from Tesla Autopilot.His insistence on vertical integration causes his companies to move most production in-house.\n",
                        "The Bulls finished the season 38–44, and lost to the Milwaukee Bucks in four games in the first round of the playoffs.An often-cited moment was on August 26, 1985, when Jordan shook the arena during a Nike exhibition game in Trieste, Italy, by shattering the glass of the backboard with a dunk.The moment was filmed and is often referred to worldwide as an important milestone in Jordan's rise.The shoes Jordan wore during the game were auctioned in August 2020 and sold for $615,000, a record for a pair of sneakers.Jordan's 1985–86 season was cut short when he broke his foot in the third game of the year, causing him to miss 64 games.The Bulls made the playoffs despite Jordan's injury and a 30–52 record, at the time the fifth-worst record of any team to qualify for the playoffs in NBA history.Jordan recovered in time to participate in the postseason and performed well upon his return.\n",
                        "On February 21, 2003, Jordan became the first 40-year-old to tally 43 points in an NBA game.During his stint with the Wizards, all of Jordan's home games at the MCI Center were sold out and the Wizards were the second most-watched team in the NBA, averaging 20,172 fans a game at home and 19,311 on the road.Jordan's final two seasons did not result in a playoff appearance for the Wizards, and he was often unsatisfied with the play of those around him.At several points, he openly criticized his teammates to the media, citing their lack of focus and intensity, notably that of Kwame Brown, the number-one draft pick in the 2001 NBA draft.\n",
                        "\n",
                        "\n",
                        "==== Final retirement (2003) ====\n",
                        "With the recognition that 2002–03 would be Jordan's final season, tributes were paid to him throughout the NBA.In his final game at the United Center in Chicago, which was his old home court, Jordan received a four-minute standing ovation.The Miami Heat retired the No.23 jersey on April 11, 2003, even though Jordan never played for the team.\n",
                        "On offense, he relied more upon instinct and improvization at game time.Noted as a durable player, Jordan did not miss four or more games while active for a full season from 1986–87 to 2001–02, when he injured his right knee.Of the 15 seasons Jordan was in the NBA, he played all 82 regular season games nine times.Jordan has frequently cited David Thompson, Walter Davis, and Jerry West as influences.Confirmed at the start of his career, and possibly later on, Jordan had a special \"Love of the Game Clause\" written into his contract, which was unusual at the time, and allowed him to play basketball against anyone at any time, anywhere.Jordan had a versatile offensive game and was capable of aggressively driving to the basket as well as drawing fouls from his opponents at a high rate.His 8,772 free throw attempts are the 11th-highest total in NBA history.As his career progressed, Jordan also developed the ability to post up his opponents and score with his trademark fadeaway jump shot, using his leaping ability to avoid block attempts.According to Hubie Brown, this move alone made him nearly unstoppable.\n",
                        "In October 2022, Musk stated that about 20,000 satellite terminals had been donated to Ukraine, together with free data transfer subscriptions, which cost SpaceX $80 million.After asking the United States Department of Defense to pay for further units and future subscriptions on behalf of Ukraine, Musk publicly stated that SpaceX would continue to provide Starlink to Ukraine for free, at a yearly cost to itself of $400 million.\n",
                        "\n",
                        "\n",
                        "=== Tesla ===\n",
                        "\n",
                        "Tesla, Inc.—originally Tesla Motors—was incorporated in July 2003 by Martin Eberhard and Marc Tarpenning, who financed the company until the Series A round of funding.Both men played active roles in the company's early development prior to Musk's involvement.Musk led the Series A round of investment in February 2004; he invested $6.5 million, became the majority shareholder, and joined Tesla's board of directors as chairman.Musk took an active role within the company and oversaw Roadster product design but was not deeply involved in day-to-day business operations.Following a series of escalating conflicts in 2007, and the financial crisis of 2007–2008, Eberhard was ousted from the firm.\n",
                        "=== Zip2 ===\n",
                        "\n",
                        "In 1995, Musk, his brother Kimbal, and Greg Kouri founded Zip2. Errol Musk provided them with $28,000 in funding. The company developed an Internet city guide with maps, directions, and yellow pages, and marketed it to newspapers. They worked at a small rented office in Palo Alto, with Musk coding the website every night. Eventually, Zip2 obtained contracts with The New York Times and the Chicago Tribune. The brothers persuaded the board of directors to abandon a merger with CitySearch; however, Musk's attempts to become CEO were thwarted. Compaq acquired Zip2 for $307 million in cash in February 1999, and Musk received $22 million for his 7-percent share.\n",
                        "\n",
                        "\n",
                        "=== X.com and PayPal ===\n",
                        "\n",
                        "Later in 1999, Musk co-founded X.com, an online financial services and e-mail payment company with $12 million of the money he made from the Compaq acquisition.X.com was one of the first federally insured online banks, and over 200,000 customers joined in its initial months of operation.\n",
                        "=== Charlotte Bobcats/Hornets ===\n",
                        "On June 15, 2006, Jordan bought a minority stake in the Charlotte Bobcats (known as the Hornets since 2013), becoming the team's second-largest shareholder behind majority owner Robert L. Johnson.As part of the deal, Jordan took full control over the basketball side of the operation, with the title Managing Member of Basketball Operations.Despite Jordan's previous success as an endorser, he has made an effort not to be included in Charlotte's marketing campaigns.A decade earlier, Jordan had made a bid to become part-owner of Charlotte's original NBA team, the Charlotte Hornets, but talks collapsed when owner George Shinn refused to give Jordan complete control of basketball operations.In February 2010, it was reported that Jordan was seeking majority ownership of the Bobcats.As February wore on, it became apparent that Jordan and former Houston Rockets president George Postolos were the leading contenders for ownership of the team.On February 27, the Bobcats announced that Johnson had reached an agreement with Jordan and his group, MJ Basketball Holdings, to buy the team from Johnson pending NBA approval.\n",
                        "Musk does not receive a salary from Tesla; he agreed with the board in 2018 to a compensation plan that ties his personal earnings to Tesla's valuation and revenue.The deal stipulated that Musk only receives the compensation if Tesla reaches certain market values.It was the largest such deal ever done between a CEO and a company board.In the first award, given in May 2020, he was eligible to purchase 1.69 million Tesla shares (about 1% of the company) at below-market prices, which was worth about $800 million.Musk paid $455 million in taxes on $1.52 billion of income between 2014 and 2018.According to ProPublica, Musk paid no federal income taxes in 2018.He claimed his 2021 tax bill was estimated at $12 billion based on his sale of $14 billion worth of Tesla stock.Musk has repeatedly described himself as \"cash poor\", and has \"professed to have little interest in the material trappings of wealth\".In May 2020, he pledged to sell almost all physical possessions.Musk has defended his wealth by saying he is accumulating resources for humanity's outward expansion to space.\n",
                        "The alpha design for the system was published in a whitepaper posted to the Tesla and SpaceX blogs.The document scoped out the technology and outlined a notional route where such a transport system could be built between the Greater Los Angeles Area and the San Francisco Bay Area, at an estimated cost of $6 billion.The proposal, if technologically feasible at the costs cited, would make Hyperloop travel cheaper than any other mode of transport for such long distances.In 2015, Musk announced a design competition for students and others to build Hyperloop pods, to operate on a SpaceX-sponsored mile-long track, for a 2015–2017 Hyperloop pod competition.The track was used in January 2017, and Musk also announced that the company had started a tunnel project, with Hawthorne Municipal Airport as its destination.In July 2017, Musk claimed that he had received \"verbal government approval\" to build a hyperloop from New York City to Washington, D.C., with stops in both Philadelphia and Baltimore.Mention of the projected DC-to-Baltimore leg was removed from the Boring Company website in 2021.\n",
                        "==== Pistons roadblock (1987–1990) ====\n",
                        "Jordan again led the league in scoring during the 1987–88 season, averaging 35.0 ppg on 53.5% shooting, and he won his first league MVP Award.He was also named the NBA Defensive Player of the Year, as he averaged 1.6 blocks per game (bpg), a league-high 3.1 steals per game (spg), and led the Bulls defense to the fewest points per game allowed in the league.The Bulls finished 50–32, and made it out of the first round of the playoffs for the first time in Jordan's career, as they defeated the Cleveland Cavaliers in five games.In the Eastern Conference Semifinals, the Bulls lost in five games to the more experienced Detroit Pistons, who were led by Isiah Thomas and a group of physical players known as the \"Bad Boys\".In the 1988–89 season, Jordan again led the league in scoring, averaging 32.5 ppg on 53.8% shooting from the field, along with 8 rpg and 8 apg.\n",
                        "=== OpenAI ===\n",
                        "\n",
                        "In 2015, Musk co-founded OpenAI, a not-for-profit artificial intelligence (AI) research company aiming to develop artificial general intelligence intended to be safe and beneficial to humanity. A particular focus of the company is to democratize artificial superintelligence systems, against governments and corporations. Musk pledged $1 billion of funding to OpenAI. In 2023, Musk tweeted that he had ended up giving a total of $100 million to OpenAI. TechCrunch later reported that, according to its own investigation of public records, \"only $15 million\" of OpenAI's funding could be definitively traced to Musk. Musk subsequently stated that he had donated about $50 million.In 2018, Musk left the OpenAI board to avoid possible future conflicts with his role as CEO of Tesla as the latter company increasingly became involved in AI through Tesla Autopilot. Since then, OpenAI has made significant advances in machine learning, producing neural networks such as GPT-3 (producing human-like text), and DALL-E (generating digital images from natural language descriptions).\n",
                        "Jordan's effective field goal percentage was 50%, and he had six seasons with at least 50% shooting, five of which consecutively (1988–1992); he also shot 51% and 50%, and 30% and 33% from the three-point range, throughout his first and second retirements, respectively, finishing his Chicago Bulls career with 31.5 points per game on 50.5 FG% shooting and his overall career with 49.7 FG% shooting.Unlike NBA players often compared to Jordan, such as Kobe Bryant and LeBron James, who had a similar three-point percentage, he did not shoot as many threes as they did, as he did not need to rely on the three-pointer in order to be effective on offense.Three-point shooting was only introduced in 1979 and would not be a more fundamental aspect of the game until the first decades of the 21st century, with the NBA having to briefly shorten the line to incentivize more shots.Jordan's three-point shooting was better selected, resulting in three-point field goals made in important games during the playoffs and the Finals, such as hitting six consecutive three-point shots in Game 1 of the 1992 NBA Finals.\n",
                        "=== The Boring Company ===\n",
                        "\n",
                        "In 2017, Musk founded the Boring Company to construct tunnels, and revealed plans for specialized, underground, high-occupancy vehicles that could travel up to 150 miles per hour (240 km/h) and thus circumvent above-ground traffic in major cities. Early in 2017, the company began discussions with regulatory bodies and initiated construction of a 30-foot (9.1 m) wide, 50-foot (15 m) long, and 15-foot (4.6 m) deep \"test trench\" on the premises of SpaceX's offices, as that required no permits. The Los Angeles tunnel, less than two miles (3.2 km) in length, debuted to journalists in 2018. It used Tesla Model Xs and was reported to be a rough ride while traveling at suboptimal speeds.Two tunnel projects announced in 2018, in Chicago and West Los Angeles, have been canceled. However, a tunnel beneath the Las Vegas Convention Center was completed in early 2021. Local officials have approved further expansions of the tunnel system. In 2021, tunnel construction was approved for Fort Lauderdale, Florida.\n",
                        "=== Chicago Bulls (1984–1993; 1995–1998) ===\n",
                        "\n",
                        "\n",
                        "==== Early NBA years (1984–1987) ====\n",
                        "The Chicago Bulls selected Jordan with the third overall pick of the 1984 NBA draft after Hakeem Olajuwon (Houston Rockets) and Sam Bowie (Portland Trail Blazers).One of the primary reasons why Jordan was not drafted sooner was because the first two teams were in need of a center.Trail Blazers general manager Stu Inman contended that it was not a matter of drafting a center but more a matter of taking Bowie over Jordan, in part because Portland already had Clyde Drexler, who was a guard with similar skills to Jordan.Citing Bowie's injury-laden college career, ESPN named the Blazers' choice of Bowie as the worst draft pick in North American professional sports history.Jordan made his NBA debut at Chicago Stadium on October 26, 1984, and scored 16 points.In 2021, a ticket stub from the game sold at auction for $264,000, setting a record for a collectible ticket stub.\n"
                    ]
                }
            ],
            "source": [
                "print(f\"Number of nodes: {len(nodes)}\")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 71,
            "id": "4ead6887-18c4-4855-8152-9b99016d4618",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using query str: childhood of a popular sports celebrity\n",
                        "Using query str: childhood of a popular sports celebrity\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using filters: {'category': 'Sports', 'country': 'United States'}\n",
                        "Using filters: {'category': 'Sports', 'country': 'United States'}\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using top_k: 2\n",
                        "Using top_k: 2\n",
                        "Knafel claimed Jordan promised her $5 million for remaining silent and agreeing not to file a paternity suit after Knafel learned she was pregnant in 1991; a DNA test showed Jordan was not the father of the child.Jordan proposed to his longtime girlfriend, Cuban-American model Yvette Prieto, on Christmas 2011, and they were married on April 27, 2013, at Bethesda-by-the-Sea Episcopal Church.It was announced on November 30, 2013, that the two were expecting their first child together.On February 11, 2014, Prieto gave birth to identical twin daughters named Victoria and Ysabel.In 2019, Jordan became a grandfather when his daughter Jasmine gave birth to a son, whose father is professional basketball player Rakeem Christmas.\n",
                        "\n",
                        "\n",
                        "== Media figure and business interests ==\n",
                        "\n",
                        "\n",
                        "=== Endorsements ===\n",
                        "Jordan is one of the most marketed sports figures in history.He has been a major spokesman for such brands as Nike, Coca-Cola, Chevrolet, Gatorade, McDonald's, Ball Park Franks, Rayovac, Wheaties, Hanes, and MCI.\n",
                        "James Jr. became command sergeant major of the 35th Signal Brigade of the U.S. Army's XVIII Airborne Corps and retired in 2006.In 1968, Jordan moved with his family to Wilmington, North Carolina.He attended Emsley A. Laney High School in Wilmington, where he highlighted his athletic career by playing basketball, baseball, and football.He tried out for the basketball varsity team during his sophomore year, but at a height of 5 feet 11 inches (1.80 m), he was deemed too short to play at that level.His taller friend Harvest Leroy Smith was the only sophomore to make the team.Motivated to prove his worth, Jordan became the star of Laney's junior varsity team and tallied some 40-point games.The following summer, he grew four inches (10 cm) and trained rigorously.Upon earning a spot on the varsity roster, he averaged more than 25 points per game (ppg) over his final two seasons of high school play.\n"
                    ]
                }
            ],
            "source": [
                "nodes = retriever.retrieve(\n",
                "    \"Tell me about the childhood of a popular sports celebrity in the United States\"\n",
                ")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 72,
            "id": "c0a8627c-662f-47b9-8e48-7c2f237dda1a",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using query str: college life of a billionaire who started at company at the age of 16\n",
                        "Using query str: college life of a billionaire who started at company at the age of 16\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using filters: {}\n",
                        "Using filters: {}\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using top_k: 2\n",
                        "Using top_k: 2\n",
                        "He reportedly hosted large, ticketed house parties to help pay for tuition, and wrote a business plan for an electronic book-scanning service similar to Google Books.In 1994, Musk held two internships in Silicon Valley: one at energy storage startup Pinnacle Research Institute, which investigated electrolytic ultracapacitors for energy storage, and another at Palo Alto–based startup Rocket Science Games.In 1995, he was accepted to a PhD program in materials science at Stanford University.However, Musk decided to join the Internet boom, dropping out two days after being accepted and applied for a job at Netscape, to which he reportedly never received a response.\n",
                        "\n",
                        "\n",
                        "== Business career ==\n",
                        "At age ten, he developed an interest in computing and video games, teaching himself how to program from the VIC-20 user manual.At age twelve, he sold his BASIC-based game Blastar to PC and Office Technology magazine for approximately $500.\n",
                        "\n",
                        "\n",
                        "=== Education ===\n",
                        "Musk attended Waterkloof House Preparatory School, Bryanston High School, and Pretoria Boys High School, from where he graduated.Musk applied for a Canadian passport through his Canadian-born mother, knowing that it would be easier to immigrate to the United States this way.While waiting for his application to be processed, he attended the University of Pretoria for five months.Musk arrived in Canada in June 1989 and lived with a second cousin in Saskatchewan for a year, working odd jobs at a farm and lumber mill.In 1990, he entered Queen's University in Kingston, Ontario.Two years later, he transferred to the University of Pennsylvania (UPenn), where he completed studies for a Bachelor of Arts degree in physics and a Bachelor of Science degree in economics from the Wharton School.Although Musk claims he earned the degrees in 1995, UPenn maintains it awarded them in 1997.\n"
                    ]
                }
            ],
            "source": [
                "nodes = retriever.retrieve(\n",
                "    \"Tell me about the college life of a billionaire who started at company at the age of 16\"\n",
                ")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 73,
            "id": "33425c39-e0e7-4415-b695-66c96d3fc7d1",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using query str: childhood of a billionaire\n",
                        "Using query str: childhood of a billionaire\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using filters: {'country': 'UK'}\n",
                        "Using filters: {'country': 'UK'}\n",
                        "INFO:llama_index.indices.vector_store.retrievers.auto_retriever.auto_retriever:Using top_k: 2\n",
                        "Using top_k: 2\n",
                        "Branson has also talked openly about having ADHD.Branson's parents were supportive of his endeavours from an early age.His mother was an entrepreneur; one of her most successful ventures was building and selling wooden tissue boxes and wastepaper bins.In London, he started off squatting from 1967 to 1968.Branson is an atheist.He said in a 2011 interview with CNN's Piers Morgan that he believes in evolution and the importance of humanitarian efforts but not in the existence of God.\"I would love to believe,\" he said.\"It's very comforting to believe\".\n",
                        "\n",
                        "\n",
                        "== Early business career ==\n",
                        "After failed attempts to grow and sell both Christmas trees and budgerigars, Branson launched a magazine named Student in 1966 with Nik Powell.The first issue of Student appeared in January 1968, and a year later, Branson's net worth was estimated at £50,000.The office for the venture was situated in the crypt of St. John's Church, off Bayswater Road, in London.Though not initially as successful as he hoped, the magazine later became a vital component of the mail-order record business Branson started from the same church he used for Student.\n",
                        "In March 2000, Branson was knighted at Buckingham Palace for \"services to entrepreneurship\".For his work in retail, music and transport (with interests in land, air, sea and space travel), his taste for adventure and for his humanitarian work, he has become a prominent global figure.In 2007, he was placed in the Time 100 Most Influential People in the World list.In June 2023, Forbes listed Branson's estimated net worth at US$3 billion.On 11 July 2021, Branson travelled as a passenger onboard Virgin Galactic Unity 22 at the edge of space, a suborbital test flight for his spaceflight company Virgin Galactic.The mission lasted approximately one hour, reaching a peak altitude of 53.5 miles (86.1 km).At 70, Branson became the third oldest person to fly to space.\n",
                        "\n",
                        "\n",
                        "== Early life ==\n",
                        "Richard Charles Nicholas Branson was born on 18 July 1950 in Blackheath, London, the son of Edward James Branson (1918–2011), a barrister, and his wife Evette Huntley Branson (née Flindt; 1924–2021), a former ballet dancer and air hostess.\n"
                    ]
                }
            ],
            "source": [
                "nodes = retriever.retrieve(\"Tell me about the childhood of a UK billionaire\")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "markdown",
            "id": "45612783-c82c-48f7-ace9-d04341b9d3ec",
            "metadata": {},
            "source": [
                "## Build Recursive Retriever over Document Summaries"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 87,
            "id": "6a127983-f083-41d8-9299-e8f93e1ee112",
            "metadata": {
                "tags": []
            },
            "outputs": [],
            "source": [
                "from llama_index.schema import IndexNode"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 98,
            "id": "07d4509e-715c-4844-975b-db2afa900fe5",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "**Summary for Michael Jordan: Michael Jordan, often referred to as MJ, is a retired professional basketball player from the United States who is widely considered one of the greatest players in the history of the sport. He played 15 seasons in the NBA, primarily with the Chicago Bulls, and won six NBA championships. His individual accolades include six NBA Finals MVP awards, ten NBA scoring titles, five NBA MVP awards, and fourteen NBA All-Star Game selections. He also holds the NBA records for career regular season scoring average and career playoff scoring average. Jordan briefly retired to play Minor League Baseball, but returned to lead the Bulls to three more championships. He was twice inducted into the Naismith Memorial Basketball Hall of Fame. \n",
                        "\n",
                        "After retiring, Jordan became a successful businessman, part-owner and head of basketball operations for the Charlotte Hornets, and owner of 23XI Racing in the NASCAR Cup Series. He has also made significant contributions to charitable causes, donating millions to organizations such as the Make-A-Wish Foundation and Habitat for Humanity. In the entertainment industry, he has appeared in productions like \"Space Jam\" and \"The Last Dance\", and has authored several books about his life and career. His influence extends beyond sports, making him a significant cultural figure.\n",
                        "**Summary for Elon Musk: Elon Musk is a globally recognized business magnate and investor, who has founded and led numerous high-profile technology companies. He is the founder, CEO, and chief technology officer of SpaceX, an aerospace manufacturer and space transportation company, and the CEO and product architect of Tesla, Inc., a company specializing in electric vehicles and clean energy. Musk also owns and chairs X Corp, and founded the Boring Company, a tunnel construction and infrastructure company. He co-founded Neuralink, a neurotechnology company, and OpenAI, a nonprofit artificial intelligence research company. \n",
                        "\n",
                        "In 2022, Musk acquired Twitter and merged it with X Corp, and also founded xAI, an AI company. Despite his success, he has faced criticism for his controversial statements and management style. Musk was born in South Africa, moved to Canada at 18, and later to the United States to attend Stanford University, but dropped out to start his entrepreneurial journey. He co-founded Zip2 and X.com (later PayPal), which was sold to eBay in 2002. \n",
                        "\n",
                        "Musk envisions a future that includes Mars colonization and the development of a high-speed transportation system known as the Hyperloop. As of August 2023, he is the wealthiest person in the world, with a net worth of over $200 billion. Despite various controversies, Musk has made significant contributions to the tech industry. He has been married multiple times, has several children, and is known for his active presence on social media, particularly Twitter.\n",
                        "**Summary for Richard Branson: Richard Branson, born on 18 July 1950, is a British business magnate, commercial astronaut, and philanthropist. He founded the Virgin Group in the 1970s, which now controls over 400 companies in various fields such as aviation, music, and space travel. His first business venture was a magazine called Student, and he later established a mail-order record business and a chain of record stores known as Virgin Records. The Virgin brand expanded rapidly during the 1980s with the start of Virgin Atlantic airline and the expansion of the Virgin Records music label. In 1997, he founded the Virgin Rail Group, and in 2004, he founded Virgin Galactic. Branson was knighted in 2000 for his services to entrepreneurship. He has a net worth of US$3 billion as of June 2023. Branson has also been involved in numerous philanthropic activities and has launched initiatives like Virgin Startup. Despite his success, he has faced criticism and legal issues, including a brief jail term for tax evasion in 1971. He is married to Joan Templeman, with whom he has two children.\n",
                        "**Summary for Rihanna: Rihanna, whose real name is Robyn Rihanna Fenty, is a renowned Barbadian singer, songwriter, actress, and businesswoman. She rose to fame after signing with Def Jam in 2005 and releasing her first two albums, \"Music of the Sun\" and \"A Girl Like Me\". Her third album, \"Good Girl Gone Bad\", solidified her status as a major music icon. Some of her other successful albums include \"Rated R\", \"Loud\", \"Talk That Talk\", and \"Unapologetic\", which was her first to reach number one on the Billboard 200. \n",
                        "\n",
                        "Rihanna has sold over 250 million records worldwide, making her one of the best-selling music artists of all time. She has received numerous awards, including nine Grammy Awards, 12 Billboard Music Awards, and 13 American Music Awards. She also holds six Guinness World Records. \n",
                        "\n",
                        "In addition to her music career, Rihanna has ventured into business, founding the cosmetics brand Fenty Beauty and the fashion house Fenty under LVMH. She has also acted in several films, including \"Battleship\", \"Home\", \"Valerian and the City of a Thousand Planets\", and \"Ocean's 8\". \n",
                        "\n",
                        "Rihanna is also known for her philanthropic work, particularly through her Believe Foundation and the Clara Lionel Foundation. As of 2023, she is the wealthiest female musician, with an estimated net worth of $1.4 billion.\n"
                    ]
                }
            ],
            "source": [
                "# define top-level nodes and vector retrievers\n",
                "nodes = []\n",
                "vector_query_engines = {}\n",
                "vector_retrievers = {}\n",
                "\n",
                "for wiki_title in wiki_titles:\n",
                "    # build vector index\n",
                "    vector_index = VectorStoreIndex.from_documents(\n",
                "        [docs_dict[wiki_title]], service_context=service_context\n",
                "    )\n",
                "    # define query engines\n",
                "    vector_query_engine = vector_index.as_query_engine()\n",
                "    vector_query_engines[wiki_title] = vector_query_engine\n",
                "    vector_retrievers[wiki_title] = vector_index.as_retriever()\n",
                "\n",
                "    # save summaries\n",
                "    out_path = Path(\"summaries\") / f\"{wiki_title}.txt\"\n",
                "    if not out_path.exists():\n",
                "        # use LLM-generated summary\n",
                "        summary_index = SummaryIndex.from_documents(\n",
                "            [docs_dict[wiki_title]], service_context=service_context\n",
                "        )\n",
                "\n",
                "        summarizer = summary_index.as_query_engine(response_mode=\"tree_summarize\")\n",
                "        response = await summarizer.aquery(f\"Give me a summary of {wiki_title}\")\n",
                "\n",
                "        wiki_summary = response.response\n",
                "        Path(\"summaries\").mkdir(exist_ok=True)\n",
                "        with open(out_path, \"w\") as fp:\n",
                "            fp.write(wiki_summary)\n",
                "    else:\n",
                "        with open(out_path, \"r\") as fp:\n",
                "            wiki_summary = fp.read()\n",
                "\n",
                "    print(f\"**Summary for {wiki_title}: {wiki_summary}\")\n",
                "    node = IndexNode(text=wiki_summary, index_id=wiki_title)\n",
                "    nodes.append(node)"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 99,
            "id": "f3f10b9d-2cdc-44d7-9f2c-44c1438fad9e",
            "metadata": {},
            "outputs": [],
            "source": [
                "# define top-level retriever\n",
                "top_vector_index = VectorStoreIndex(nodes)\n",
                "top_vector_retriever = top_vector_index.as_retriever(similarity_top_k=1)"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 100,
            "id": "65547fe1-6d2c-4658-8552-08a34f9c763f",
            "metadata": {},
            "outputs": [],
            "source": [
                "# define recursive retriever\n",
                "from llama_index.retrievers import RecursiveRetriever\n",
                "from llama_index.query_engine import RetrieverQueryEngine\n",
                "from llama_index.response_synthesizers import get_response_synthesizer"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 102,
            "id": "bfb2b340",
            "metadata": {},
            "outputs": [],
            "source": [
                "# note: can pass `agents` dict as `query_engine_dict` since every agent can be used as a query engine\n",
                "recursive_retriever = RecursiveRetriever(\n",
                "    \"vector\",\n",
                "    retriever_dict={\"vector\": top_vector_retriever, **vector_retrievers},\n",
                "    # query_engine_dict=vector_query_engines,\n",
                "    verbose=True,\n",
                ")"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 103,
            "id": "3df4a090-c45a-4e3e-8d0a-f2955204bf26",
            "metadata": {},
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "\u001b[36;1m\u001b[1;3mRetrieving with query id None: Tell me about a celebrity from the United States\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieved node with id, entering: Michael Jordan\n",
                        "\u001b[0m\u001b[36;1m\u001b[1;3mRetrieving with query id Michael Jordan: Tell me about a celebrity from the United States\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieving text node: He was interviewed at three homes associated with the production and did not want cameras in his home or on his plane, as according to director Jason Hehir \"there are certain aspects of his life that he wants to keep private\".Jordan granted rapper Travis Scott permission to film a music video for his single \"Franchise\" at his home in Highland Park, Illinois.Jordan appeared in the 2022 miniseries The Captain, which follows the life and career of Derek Jeter.\n",
                        "\n",
                        "\n",
                        "=== Books ===\n",
                        "Jordan has authored several books focusing on his life, basketball career, and world view.\n",
                        "\n",
                        "Rare Air: Michael on Michael, with Mark Vancil and Walter Iooss (Harper San Francisco, 1993).\n",
                        "I Can't Accept Not Trying: Michael Jordan on the Pursuit of Excellence, with Mark Vancil and Sandro Miller (Harper San Francisco, 1994).\n",
                        "For the Love of the Game: My Story, with Mark Vancil (Crown Publishers, 1998).\n",
                        "Driven from Within, with Mark Vancil (Atria Books, 2005).\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieving text node: In the September 1996 issue of Sport, which was the publication's 50th-anniversary issue, Jordan was named the greatest athlete of the past 50 years.Jordan's athletic leaping ability, highlighted in his back-to-back Slam Dunk Contest championships in 1987 and 1988, is credited by many people with having influenced a generation of young players.Several NBA players, including James and Dwyane Wade, have stated that they considered Jordan their role model while they were growing up.In addition, commentators have dubbed a number of next-generation players \"the next Michael Jordan\" upon their entry to the NBA, including Penny Hardaway, Grant Hill, Allen Iverson, Bryant, Vince Carter, James, and Wade.Some analysts, such as The Ringer's Dan Devine, drew parallels between Jordan's experiment at point guard in the 1988–89 season and the modern NBA; for Devine, it \"inadvertently foreshadowed the modern game's stylistic shift toward monster-usage primary playmakers\", such as Russell Westbrook, James Harden, Luka Dončić, and James.Don Nelson stated: \"I would've been playing him at point guard the day he showed up as a rookie.\n",
                        "\u001b[0mHe was interviewed at three homes associated with the production and did not want cameras in his home or on his plane, as according to director Jason Hehir \"there are certain aspects of his life that he wants to keep private\".Jordan granted rapper Travis Scott permission to film a music video for his single \"Franchise\" at his home in Highland Park, Illinois.Jordan appeared in the 2022 miniseries The Captain, which follows the life and career of Derek Jeter.\n",
                        "\n",
                        "\n",
                        "=== Books ===\n",
                        "Jordan has authored several books focusing on his life, basketball career, and world view.\n",
                        "\n",
                        "Rare Air: Michael on Michael, with Mark Vancil and Walter Iooss (Harper San Francisco, 1993).\n",
                        "I Can't Accept Not Trying: Michael Jordan on the Pursuit of Excellence, with Mark Vancil and Sandro Miller (Harper San Francisco, 1994).\n",
                        "For the Love of the Game: My Story, with Mark Vancil (Crown Publishers, 1998).\n",
                        "Driven from Within, with Mark Vancil (Atria Books, 2005).\n",
                        "In the September 1996 issue of Sport, which was the publication's 50th-anniversary issue, Jordan was named the greatest athlete of the past 50 years.Jordan's athletic leaping ability, highlighted in his back-to-back Slam Dunk Contest championships in 1987 and 1988, is credited by many people with having influenced a generation of young players.Several NBA players, including James and Dwyane Wade, have stated that they considered Jordan their role model while they were growing up.In addition, commentators have dubbed a number of next-generation players \"the next Michael Jordan\" upon their entry to the NBA, including Penny Hardaway, Grant Hill, Allen Iverson, Bryant, Vince Carter, James, and Wade.Some analysts, such as The Ringer's Dan Devine, drew parallels between Jordan's experiment at point guard in the 1988–89 season and the modern NBA; for Devine, it \"inadvertently foreshadowed the modern game's stylistic shift toward monster-usage primary playmakers\", such as Russell Westbrook, James Harden, Luka Dončić, and James.Don Nelson stated: \"I would've been playing him at point guard the day he showed up as a rookie.\n"
                    ]
                }
            ],
            "source": [
                "# ?\n",
                "nodes = recursive_retriever.retrieve(\"Tell me about a celebrity from the United States\")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": 104,
            "id": "7f3a83e8-5872-4d55-9307-f4cd4c79216c",
            "metadata": {
                "tags": []
            },
            "outputs": [
                {
                    "name": "stdout",
                    "output_type": "stream",
                    "text": [
                        "\u001b[36;1m\u001b[1;3mRetrieving with query id None: Tell me about the childhood of a billionaire who started at company at the age of 16\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieved node with id, entering: Richard Branson\n",
                        "\u001b[0m\u001b[36;1m\u001b[1;3mRetrieving with query id Richard Branson: Tell me about the childhood of a billionaire who started at company at the age of 16\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieving text node: Branson has also talked openly about having ADHD.Branson's parents were supportive of his endeavours from an early age.His mother was an entrepreneur; one of her most successful ventures was building and selling wooden tissue boxes and wastepaper bins.In London, he started off squatting from 1967 to 1968.Branson is an atheist.He said in a 2011 interview with CNN's Piers Morgan that he believes in evolution and the importance of humanitarian efforts but not in the existence of God.\"I would love to believe,\" he said.\"It's very comforting to believe\".\n",
                        "\n",
                        "\n",
                        "== Early business career ==\n",
                        "After failed attempts to grow and sell both Christmas trees and budgerigars, Branson launched a magazine named Student in 1966 with Nik Powell.The first issue of Student appeared in January 1968, and a year later, Branson's net worth was estimated at £50,000.The office for the venture was situated in the crypt of St. John's Church, off Bayswater Road, in London.Though not initially as successful as he hoped, the magazine later became a vital component of the mail-order record business Branson started from the same church he used for Student.\n",
                        "\u001b[0m\u001b[38;5;200m\u001b[1;3mRetrieving text node: In March 2000, Branson was knighted at Buckingham Palace for \"services to entrepreneurship\".For his work in retail, music and transport (with interests in land, air, sea and space travel), his taste for adventure and for his humanitarian work, he has become a prominent global figure.In 2007, he was placed in the Time 100 Most Influential People in the World list.In June 2023, Forbes listed Branson's estimated net worth at US$3 billion.On 11 July 2021, Branson travelled as a passenger onboard Virgin Galactic Unity 22 at the edge of space, a suborbital test flight for his spaceflight company Virgin Galactic.The mission lasted approximately one hour, reaching a peak altitude of 53.5 miles (86.1 km).At 70, Branson became the third oldest person to fly to space.\n",
                        "\n",
                        "\n",
                        "== Early life ==\n",
                        "Richard Charles Nicholas Branson was born on 18 July 1950 in Blackheath, London, the son of Edward James Branson (1918–2011), a barrister, and his wife Evette Huntley Branson (née Flindt; 1924–2021), a former ballet dancer and air hostess.\n",
                        "\u001b[0mBranson has also talked openly about having ADHD.Branson's parents were supportive of his endeavours from an early age.His mother was an entrepreneur; one of her most successful ventures was building and selling wooden tissue boxes and wastepaper bins.In London, he started off squatting from 1967 to 1968.Branson is an atheist.He said in a 2011 interview with CNN's Piers Morgan that he believes in evolution and the importance of humanitarian efforts but not in the existence of God.\"I would love to believe,\" he said.\"It's very comforting to believe\".\n",
                        "\n",
                        "\n",
                        "== Early business career ==\n",
                        "After failed attempts to grow and sell both Christmas trees and budgerigars, Branson launched a magazine named Student in 1966 with Nik Powell.The first issue of Student appeared in January 1968, and a year later, Branson's net worth was estimated at £50,000.The office for the venture was situated in the crypt of St. John's Church, off Bayswater Road, in London.Though not initially as successful as he hoped, the magazine later became a vital component of the mail-order record business Branson started from the same church he used for Student.\n",
                        "In March 2000, Branson was knighted at Buckingham Palace for \"services to entrepreneurship\".For his work in retail, music and transport (with interests in land, air, sea and space travel), his taste for adventure and for his humanitarian work, he has become a prominent global figure.In 2007, he was placed in the Time 100 Most Influential People in the World list.In June 2023, Forbes listed Branson's estimated net worth at US$3 billion.On 11 July 2021, Branson travelled as a passenger onboard Virgin Galactic Unity 22 at the edge of space, a suborbital test flight for his spaceflight company Virgin Galactic.The mission lasted approximately one hour, reaching a peak altitude of 53.5 miles (86.1 km).At 70, Branson became the third oldest person to fly to space.\n",
                        "\n",
                        "\n",
                        "== Early life ==\n",
                        "Richard Charles Nicholas Branson was born on 18 July 1950 in Blackheath, London, the son of Edward James Branson (1918–2011), a barrister, and his wife Evette Huntley Branson (née Flindt; 1924–2021), a former ballet dancer and air hostess.\n"
                    ]
                }
            ],
            "source": [
                "nodes = recursive_retriever.retrieve(\n",
                "    \"Tell me about the childhood of a billionaire who started at company at the age of 16\"\n",
                ")\n",
                "for node in nodes:\n",
                "    print(node.node.get_content())"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": null,
            "id": "750e4416-644a-42f9-9acf-1bac2fa05748",
            "metadata": {},
            "outputs": [],
            "source": []
        }
    ],
    "metadata": {
        "kernelspec": {
            "display_name": "llama_index_v2",
            "language": "python",
            "name": "llama_index_v2"
        },
        "language_info": {
            "codemirror_mode": {
                "name": "ipython",
                "version": 3
            },
            "file_extension": ".py",
            "mimetype": "text/x-python",
            "name": "python",
            "nbconvert_exporter": "python",
            "pygments_lexer": "ipython3",
            "version": "3.10.10"
        }
    },
    "nbformat": 4,
    "nbformat_minor": 5
}
